Jump to content

get employee id in a twig file


giraldillo

Recommended Posts

Hello,

I would like to show/hide some content in admin pages according with employee profile id. How can I get the employee id in a twig file?

Specifically I want to hide the wholesale price to some user in the backoffice (product page, price tab).

Any help will be welcomed. 

 

Thanks!

Link to comment
Share on other sites

On 12/13/2019 at 10:30 AM, ndiaga said:

Hi,

Twig  or  smarty?

 

Twig, I'd like to change this file: /public_html/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/pricing.html.twig

Do you know how can I do it ? The code in the previous post does't work.Thanks in advance.

Thanks in advance!

PD: My goal is show the wholesale price ONLY to Superadmin / Admin users, not to commercials or logistic users. 

Link to comment
Share on other sites

  • 1 month later...
On 12/17/2019 at 12:47 PM, giraldillo said:

Twig, I'd like to change this file: /public_html/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Panels/pricing.html.twig

Do you know how can I do it ? The code in the previous post does't work.Thanks in advance.

Thanks in advance!

PD: My goal is show the wholesale price ONLY to Superadmin / Admin users, not to commercials or logistic users. 

Hi,

I have the same problem.

Did you find the solution?

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...