Hans Wolf Posted March 20, 2019 Share Posted March 20, 2019 I created an override for the essentials.html.twig /modules/foo/views/PrestaShop/Admin/Product/essentials.html.twig But it doesn't work? You have to start creating the file like this? {% extends '@ PrestaShop / Admin / layout.html.twig'%} {% block content%} code {% endblock%} The original file is on src / PrestaShopBundle / Resources / views / Admin / Product / ProductPage / Panels / essentials.html.twig If I change the originals file it will work Link to comment Share on other sites More sharing options...
mickaelandrieu Posted March 20, 2019 Share Posted March 20, 2019 Hello Hans, the right path is /modules/foo/views/PrestaShop/Admin/Product/Panels/essentials.html.twig, maybe you forgot the "Panels" folder? Let me know if it works. Cheers Link to comment Share on other sites More sharing options...
wawku Posted May 1, 2019 Share Posted May 1, 2019 (edited) as of prestashop 1.7.5.1 /modules/foo/views/PrestaShop/Admin/Product/ProductPage/Panels/essentials.html.twig works for me Edited May 1, 2019 by wawku (see edit history) 1 Link to comment Share on other sites More sharing options...
Geimsdin Posted January 13, 2021 Share Posted January 13, 2021 I know it's an old conversation but I would like to ask some of you to point me in the right direction. I need to modify the product list view removing a field and adding another one, I followed the devdocs here and it is exactly what I need, I created a simple module using the generator, added the correct file with correct path to the views/ folder but I don't know how to trigger it so that it overrides tha original twig template. When I open the product list I see no change. Link to comment Share on other sites More sharing options...
peorthyr Posted May 2, 2022 Share Posted May 2, 2022 On 1/13/2021 at 7:31 AM, Geimsdin said: I know it's an old conversation but I would like to ask some of you to point me in the right direction. I need to modify the product list view removing a field and adding another one, I followed the devdocs here and it is exactly what I need, I created a simple module using the generator, added the correct file with correct path to the views/ folder but I don't know how to trigger it so that it overrides tha original twig template. When I open the product list I see no change. same problem, trying to override the address form in the backoffice. Link to comment Share on other sites More sharing options...
leoCodesAShop Posted April 3 Share Posted April 3 Same Problem anyone an Idea? 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