0

As the title says, I want to be able to display some information in the product page that only appears for admins logged in.

  • 1st question: How do I define an user (client) in frontend as admin?
  • 2nd question: How do I show that information (inside a div for example) only to the clients that I want, or in this case, are admins?

Is this possible?

  • It is not possible. FE and BE are separate codes and sessions. – Sanju Nov 8 at 13:25
  • @Sanju looking for another alternative, do you think I can show a product attribute only for one type of customer group? that way I define a customer group for my admins and then only them can read the info I need them to read – Tiago Costa Nov 8 at 14:05
  • Yes, that is possible. You can easily fetch a customer group in front. – Sanju Nov 8 at 14:20
  • @Sanju Ok, thank you! :) – Tiago Costa Nov 8 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.