darkfires Posted June 18 Share Posted June 18 Hi, I've been trying to customize src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_shipping.html.twig but no changes are visible even after clearing cache. I even renamed form_shipping.html.twig to form_shipping.html.twig.old and ProductPage/product.html.twig to ProductPage/product.html.twig.old, deleted all the cache and reloaded the product page and it all still works like the files were there. Really confused as to where its getting the pages from... does any have ideas? Thanks Link to comment Share on other sites More sharing options...
El Patron Posted June 20 Share Posted June 20 This is a common point of confusion with PrestaShop’s modern back office. Here are a few things to check: Template Override System: PrestaShop lets you override Symfony admin templates by copying them into your theme, for example: themes/YOUR_THEME/templates/bundles/PrestaShopBundle/Admin/Product/ProductPage/Forms/form_shipping.html.twig If a theme override exists, it will take priority over the core file you edited in src/PrestaShopBundle. If you’re editing the core file directly and there’s an override, you won’t see your changes. Files Loaded From /vendor/ Some admin templates can be loaded from the /vendor directory, especially after recent PrestaShop updates. So, double-check if the file exists (or is being loaded) from somewhere like: vendor/prestashop/prestashop/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/form_shipping.html.twig If you still can’t locate the right file, let us know your PrestaShop version and whether you’re using a custom theme or any admin modules. That can help narrow it down. 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