markussorg Posted January 5, 2017 Share Posted January 5, 2017 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 More sharing options...
markussorg Posted January 5, 2017 Author Share Posted January 5, 2017 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 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