Target: Edit the topics of e-mail with informations about order in PrestaShop 1.6
File: /classes/order/OrderHistory.php
Class: OrderHistory
Method: addWithemail()
Variable: $topic
Info: This variable contains topic of the e-mail.
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
public function addWithemail(...) { ... if (isset($result['template']) && Validate::isEmail($result['email'])) { ShopUrl::cacheMainDomainForShop($order->id_shop); $topic = 'my super new topic :)'; $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int)$this->id_order, '{order_name}' => $order->getUniqReference() ); ... } |