我想在订单确认时将发票作为电子邮件附件发送,如何发送发票。 搜索了很多,而不是找到相关数据。
答案 0 :(得分:0)
VM订单确认电子邮件工作流程如下,
检查notifyCustomer()
orders.php
内的administrator/components/com_virtuemart/models/
功能
有一个类似shopFunctionsF::renderMail()
的部分它会调用shopefunctionsf
中/components/com_virtuemart/helpers/shopfunctionsf.php
帮助文件中的函数
renderMail()
在同一个文件中调用sendVmMail()
,您可以找到附加媒体或任何内容的选项。
if (isset($view->mediaToSend)) {
foreach ((array)$view->mediaToSend as $media) {
//Todo test and such things.
$mailer->addAttachment($media);
}
}
希望它的帮助..