[英]I need to send two different email template after order purchase
I need to send the two different email template as per the product type or product attribute set.我需要根据产品类型或产品属性集发送两个不同的电子邮件模板。
I can't use the paid plugin.我无法使用付费插件。 How can I write the code to change the setting?
如何编写代码来更改设置? I have created the custom email template but in the sales email we can set only one template.
我已经创建了自定义电子邮件模板,但在销售电子邮件中我们只能设置一个模板。
You could try one of the following您可以尝试以下方法之一
Rewrite Mage_Sales_Model_Order
module to add your custom logic to sendNewOrderEmail()
重写
Mage_Sales_Model_Order
模块以将您的自定义逻辑添加到sendNewOrderEmail()
You could disable order emails (see Magento: send New Order Email only with cronjobs ) then create an observer (eg checkout_submit_all_after
) and do your own custom email sending logic in it.您可以禁用订单电子邮件(请参阅Magento:仅使用 cronjobs 发送新订单电子邮件)然后创建一个观察者(例如
checkout_submit_all_after
)并在其中执行您自己的自定义电子邮件发送逻辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.