Jump to content

Check admin is signed-in in Front-Office

Recommended Posts

I want to add an Edit button next to product name(in product.tpl) for Admin, for directly going to Back-office to edit current product. PrestaShop 1.7

For this I only need to identify or Admin is logged in for Back-Office, but I need to do this in product.tpl, it means I can't use php.

How can I do this? Thanks!!

Edited by grsinternet (see edit history)

Share this post

Link to post
Share on other sites
1 hour ago, joomleader said:

you need to overwrite core file to embed token key for admin login , then you will have link to backend with token key

Token is not needed, because Admin is loged in to Back-Office, so simple link of Product Edit is enough. I have tested and it works, I can see Alert Dialog for secure appearing, but not a problem.

So I need to write only simple condition in Product Page at Front-Office to provide that link next to Product Name

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More