virtuemart 2 - 如何在确认订单上将发票作为电子邮件附件发送

时间:2014-03-12 07:41:26

标签: joomla virtuemart

我想在订单确认时将发票作为电子邮件附件发送,如何发送发票。 搜索了很多,而不是找到相关数据。

1 个答案:

答案 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);
            }
        }

希望它的帮助..