pixelofficer Posted August 12, 2015 Share Posted August 12, 2015 I've created a new order status used in our company and I need to send an email to the customers when order comes to this status. Problem is that no {variable} works in my new mail template. I would like to include details about order in this email and only thing that works is {order_name} and total maybe customer name and total. Which file should i edit when i need to add more variables to my new email template? How can I add for example complete list of ordered products when order is changed (same mail which is sent after order is made) thank you for your help! Link to comment Share on other sites More sharing options...
mpdas108 Posted August 25, 2015 Share Posted August 25, 2015 I have just posted a solution here: https://www.prestashop.com/forums/topic/465115-solution-how-to-use-order-conf-variables-in-any-email-template/ Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2015 Share Posted August 30, 2015 controller that mpdas created is really great :-)please note that it is for 1.6.0.14 and 1.6.1 (1.6.1.1 too) i tested it in these versions and it is okay Link to comment Share on other sites More sharing options...
editorstefan Posted July 27, 2017 Share Posted July 27, 2017 Hello, I'm using Prestashop 1.6.1.13 and cant get his to work. I want to display price for shiping excl. tax. '{total_shipping_tax_excl}' => Tools::displayPrice($order->total_shipping_tax_excl, $this->context->currency, false), Is not working, any idea what i should do? Link to comment Share on other sites More sharing options...
Scully Posted July 28, 2017 Share Posted July 28, 2017 variables from the order confirmation only work for the initial mail but not for other order states. your code snippet is from where? Link to comment Share on other sites More sharing options...
editorstefan Posted July 30, 2017 Share Posted July 30, 2017 variables from the order confirmation only work for the initial mail but not for other order states. your code snippet is from where? I added that to PaymentHistory.php. How can i show the shipping cost excl.tax in the order_conf mail? Link to comment Share on other sites More sharing options...
Scully Posted July 30, 2017 Share Posted July 30, 2017 payment history is the wrong place. the order confirmation is not created there. it has to be assigned in paymentmodule.php ! 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