在订单确认页面上,它显示“已向您发送一封包含此信息的电子邮件。”
我想向收件人显示电子邮件
'一封包含此信息的电子邮件已发送至您的电子邮件 eee@example.com。
在哪里改变这个
在订单确认页面上,它显示“已向您发送一封包含此信息的电子邮件。”
我想向收件人显示电子邮件
'一封包含此信息的电子邮件已发送至您的电子邮件 eee@example.com。
在哪里改变这个
You need override OrderConfirmationController::process() with this code:
public function process()
{
parent::process();
self::$smarty->assign(array(
'is_guest' => self::$cookie->is_guest,
'HOOK_ORDER_CONFIRMATION' => Hook::orderConfirmation((int)($this->id_order)),
'HOOK_PAYMENT_RETURN' => Hook::paymentReturn((int)($this->id_order), (int)($this->id_module))
));
$order = new Order((int)($this->id_order)); //create order object
$customer = new Customer((int)($order->id_customer)); //create customer object
if (self::$cookie->is_guest)
{
self::$smarty->assign(array(
'id_order' => $this->id_order,
'customer' => $customer, //assign variable
'id_order_formatted' => sprintf('#%06d', $this->id_order)
));
/* If guest we clear the cookie for security reason */
self::$cookie->mylogout();
}
}
After that you'll be able to use {$customer->email}
for receiving customers e-mail in order-confirmation.tpl of your theme.
Regards