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)
Link to comment
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

Link to comment
Share on other sites

  • 1 year later...
On 10/20/2021 at 10:03 AM, raudsepp said:

I'm using Prestashop 1.7.8.0

Use the below link in product.tpl

/your_admin_folder_name/index.php/sell/catalog/products/{$product.id}

 

I think you're just spamming the forum.
Your answer is not to the question "Check admin is signed-in in Front-Office".

Link to comment
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...