Hello everyone,
I'm trying to edit the file:
form_categories.html.twig
in the folder:
yoursite / src / PrestaShopBundle / Resources / views / Admin / Product / ProductPage / Forms /
Since I would like to hide some code from some employees, I set an if using the context:
{% if (int)Context::getContext()->employee->id_profile != 6 %}
the problem is that the vairable context does not recognize me.
Unexpected token "name" of value "Context" ("end of statement block" expected).
Could anyone help me?
Thanks to those who will respond.