[-] BO : #PSCFV-3126 - Change mail object. Mail object must be unique for a specific template
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16301 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -733,7 +733,7 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
$currency = $this->context->currency;
|
$currency = $this->context->currency;
|
||||||
$params['{voucher_amount}'] = Tools::displayPrice($cartrule->reduction_amount, $currency, false);
|
$params['{voucher_amount}'] = Tools::displayPrice($cartrule->reduction_amount, $currency, false);
|
||||||
$params['{voucher_num}'] = $cartrule->code;
|
$params['{voucher_num}'] = $cartrule->code;
|
||||||
@Mail::Send((int)$order->id_lang, 'voucher', Mail::l('New voucher regarding your order', (int)$order->id_lang),
|
@Mail::Send((int)$order->id_lang, 'voucher', sprintf(Mail::l('New voucher regarding your order %s', (int)$order->id_lang), $order->reference),
|
||||||
$params, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null,
|
$params, $customer->email, $customer->firstname.' '.$customer->lastname, null, null, null,
|
||||||
null, _PS_MAIL_DIR_, true);
|
null, _PS_MAIL_DIR_, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user