Jump to content

e-mail variables


markussorg

Recommended Posts

Hello, we have created a new status "Prepayment Reminder". We have clients who order and agree to prepayment, some of them forget to pay, we remind them that they only get the product when paid first. Changing the status sends out an e-mail to the client where we want to include the original order-date. {date} doesn't include the date but appears as "{date}" in the e-mail. 

 

=> Where do we fix this? Where are the variables that are used in status-change-mails? Is there a list of variables that we can use in the mails?

 

Thank you, best wishes

Markus 

Link to comment
Share on other sites

After quite a bit of testing we came up with the following solution: 

 

in /classes/order/OrderHistory.php

 

we added 

 

$topic = $result['osname'];
            $data = array(
                '{lastname}' => $result['lastname'],
                '{firstname}' => $result['firstname'],
                '{orderdate}' => Tools::displayDate($order->date_add),
                '{id_order}' => (int)$this->id_order,
                '{order_name}' => $order->getUniqReference()
            );
 
(lines 424-431), in the e-mail template we use {orderdate} ..
 
;-)
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...