Andrejkov Posted July 5, 2023 Share Posted July 5, 2023 Hello, In the order_conf.html email template we have the {carrier} variable - which returns the name of the carrier. And now I would like to use this variable in the shipped.html template - unfortunately the variable returns {carrier} instead of the carrier's name. What could be the problem that this variable doesn't work for the shipped.html template Link to comment Share on other sites More sharing options...
ps8modules Posted July 8, 2023 Share Posted July 8, 2023 (edited) hi. There are two options. 1. edit ./classes/order/OrderHistory.php and add your own variable to $data in the sendEmail function 2. create a module and use the sendMailAlterTemplateVars hook Sample module: ps8mod_carrierintemplates.zip Edited July 8, 2023 by ps8moduly.cz (see edit history) 1 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