davers44 Posted June 11, 2013 Share Posted June 11, 2013 Hi, I would like to use with more efficiency the possibility to send a message to a customer from AdminOrder. While prestashop allows writing different templates with different title message (even supporting multilanguage) when you send the message, the email subject is always: 'New message regarding your order' no matter what template you use, I am trying to change the subject with the corrisponding title of the template message. Any help editing such string on AdminOrder.php would be apprecieted. Thanks! $order = new Order((int)($message->id_order)); if (Validate::isLoadedObject($order)) { $varsTpl = array('{lastname}' => $customer->lastname, '{firstname}' => $customer->firstname, '{id_order}' => $message->id_order, '{message}' => (Configuration::get('PS_MAIL_TYPE') == 2 ? $message->message : nl2br2($message->message))); if (@Mail::Send((int)($order->id_lang), 'order_merchant_comment', Mail::l('New message regarding your order'), $varsTpl, $customer->email, $customer->firstname.' '.$customer->lastname, NULL, NULL, NULL, NULL, _PS_MAIL_DIR_, true)) Tools::redirectAdmin($currentIndex.'&id_order='.$id_order.'&vieworder&conf=11'.'&token='.$this->token); } Link to comment Share on other sites More sharing options...
safa Posted June 11, 2013 Share Posted June 11, 2013 i think you don't need edit AdminOrder.php this mail use this file root/mails/en/order_merchant_comment.html en laguage isoname. if you want chance mail subject you can chance lang.php. root/mails/en/lang.php regards 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