jviure Posted September 5, 2023 Share Posted September 5, 2023 Hi there! I am trying to add some extra information at the top of an order view in the BO.. I want to do in the correct way, creating a module and overriding as explained here: https://devdocs.prestashop-project.org/1.7/modules/concepts/templating/admin-views/ I ve created a simple "dummy" module with this file: /public_html/modules/foo/views/PrestaShop/Admin/Sell/Order/Order/view.html.twig Inside it I ve only this line: {% extends '@PrestaShop:Admin/Sell/Order/Order/view.html.twig' %} But all the time this error is thrown: Template "PrestaShopBundle:Admin/Sell/Order/Order/view.html.twig" is not defined in "@PrestaShop/Admin/Sell/Order/Order/view.html.twig" at line 1. What I am doing wrong? thanks in advance ;) Link to comment Share on other sites More sharing options...
w3bsolutions Posted June 1 Share Posted June 1 If you're getting that error, your PS is probably 8.x and you should follow the instructions on https://devdocs.prestashop-project.org/8/modules/concepts/templating/admin-views/ instead. TLDR; you should replace `PrestaShopBundle:Admin/Sell/Order/Order/view.html.twig` with `@PrestaShopCore/Admin/Sell/Order/Order/view.html.twig` 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