Prestashop: override admin product template 1.7

Created on 5 Feb 2019  路  4Comments  路  Source: PrestaShop/PrestaShop

Hello,

I tried to use this link https://devdocs.prestashop.com/1.7/modules/concepts/templating/admin-views/ to override @PrestaShop/Admin/Product/ProductPage/product.html.twig
I put the file in my (enabled) module in this path modules/mymodule/views/Prestashop/Admin/Product/ProductPage/product.html.twig

but even after deleting the cache, my template file is not used...

I am using prestashop 1.7.4.2, is it supposed to work?

Thank you

1.7.4.2 Modules No change required

Most helpful comment

Hello,

ok my problem was that my folder was named "Prestashop" and not "PrestaShop" with a capital S

Thank you!

All 4 comments

Hi @agnesdennetiere,

I tried with a demo module & I have an exception when I try to edit a product, so the override is used.
mymodule.zip
Thanks to check & feedback.

Hello,

ok my problem was that my folder was named "Prestashop" and not "PrestaShop" with a capital S

Thank you!

@agnesdennetiere, thanks for your feedback.
Feel free to open a new one when needed.
Thanks!

sorry it doesn't work in 1.7.6.5.

Was this page helpful?
0 / 5 - 0 ratings