简体   繁体   中英

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

  1. Rewrite Mage_Sales_Model_Order module to add your custom logic to sendNewOrderEmail()

  2. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM