gusman126 Posted August 9, 2021 Share Posted August 9, 2021 I have searched, I could not find the solution I need to add information in the order lines, in addition to showing the information, I want to add a column or row within the product Link to comment Share on other sites More sharing options...
ventura Posted August 10, 2021 Share Posted August 10, 2021 Try to edit src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/product.html.twig Link to comment Share on other sites More sharing options...
gusman126 Posted August 10, 2021 Author Share Posted August 10, 2021 hace 45 minutos, ventura dijo: Try to edit src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/product.html.twig Override? and php for variables and smarty? Link to comment Share on other sites More sharing options...
ventura Posted August 17, 2021 Share Posted August 17, 2021 On 8/10/2021 at 1:31 PM, gusman126 said: Override? and php for variables and smarty? Twig files can be overwritten. The most practical and recommendable would be to do it using a module that includes the modified .twig in the route /modules/overwtemodule/views/PrestaShop/Admin/Sell/Order/Order/Blocks/View/product.html.twig In case it is necessary to add variables, they must be added in the core files. src/Core/Domain/Order/Order/QueryResult/OrderProductForViewing.php // or src/Core/Domain/Order/QueryResult/OrderProductForViewing.php They cannot be overwritten by the traditional method. 2 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