siomosp Posted October 29, 2021 Share Posted October 29, 2021 Hi, i am trying to display a link at FO product page, visible only to employees Anybody know how? The link is "es:" Thanks for any help Link to comment Share on other sites More sharing options...
Ress Posted March 2, 2022 Share Posted March 2, 2022 To check if an admin is logged in, you can do the following: $cookies = new Cookie('psAdmin'); if ($cookies->id_employee) { //admin is logged } You can do this check in a hook in a module, and return the link only if it meets that condition. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now