kepak Posted February 5 Share Posted February 5 I got prestashop 9.0.2 I want to modify email template for new order. In the ps_emailalerts -> new order there are list of ordered product <th style="border:1px solid #D6D4D4;">{{ 'Reference'|trans({}, 'Emails.Body', locale)|raw }}</th> <th style="border:1px solid #D6D4D4;">{{ 'Product'|trans({}, 'Emails.Body', locale)|raw }}</th> <th style="border:1px solid #D6D4D4;">{{ 'Unit price'|trans({}, 'Emails.Body', locale)|raw }}</th> <th style="border:1px solid #D6D4D4;">{{ 'Quantity'|trans({}, 'Emails.Body', locale)|raw }}</th> <th style="border:1px solid #D6D4D4;">{{ 'Total price'|trans({}, 'Emails.Body', locale)|raw }}</th> I got added feature in products called "Company Owned" I want to insert to this mail I assume that I should edit file prestashop/mails/themes/classic/modules/ps_emailalerts/new_order.html.twig and somehow add this , but is this possible to get value of a product feature? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 7 Share Posted February 7 You need to change code and add variable to template Link to comment Share on other sites More sharing options...
PrestaHeroes.com Posted February 7 Share Posted February 7 chatgtp is pretty good at detailing change, see attached .pdf that explains the change you should make, it may not be perfect but will help you understand how to make the change. Prestashop_Email_Feature_Injection_Guide.pdf 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