Jump to content

Need Add to order product lines


gusman126

Recommended Posts

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.

 

  • Thanks 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...