giraldillo Posted December 12, 2019 Share Posted December 12, 2019 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 More sharing options...
giraldillo Posted December 17, 2019 Author Share Posted December 17, 2019 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 More sharing options...
SGuszti Posted January 31, 2020 Share Posted January 31, 2020 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 More sharing options...
giraldillo Posted January 31, 2020 Author Share Posted January 31, 2020 Unfortunatelly, no. 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