我想使用mail :: send()在prestashop中下订单时向管理员发送通知。我的邮件对客户有效,但我也想向下订单管理员发送邮件。想要使用任何单独的插件,我有我的付款模块,下订单后最终订单状态会更改。因此,我只需要在该文件中使用Mail :: send()即可发送通知。 诸如此类 ...
提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
我找不到系统向用户发送订单确认电子邮件的特定代码行。
我应该在哪个文件中寻找该功能?
它在第764行的classes/PaymentModule.php
发送电子邮件:
https://github.com/PrestaShop/PrestaShop/blob/1.6.0.11/classes/PaymentModule.php#L764-L775
Mail::Send(
(int)$order->id_lang,
'order_conf',
Mail::l('Order confirmation', (int)$order->id_lang),
$data,
$this->context->customer->email,
$this->context->customer->firstname.' '.$this->context->customer->lastname,
null,
null,
$file_attachement,
null, _PS_MAIL_DIR_, false, (int)$order->id_shop
);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.