简体   繁体   中英

How to include coupon code in newsletter/subscription email in Magento?

I have created a shopping cart rule 'fixed amount discount for whole cart' and I want to include the coupon code in the subscription/newsletter email to the customer. Any suggestions?

I could find the option to create transactional email template and add sing custom variables. But how do I add coupon code in that?

Go to \\app\\code\\core\\Mage\\Newsletter\\controllers\\SubscriberController.php .

public function newAction()

edit the email action and generate a new coupon code programmatic by using this link

http://www.magentocommerce.com/boards/viewthread/178767/

It not the easiest method but it should work.

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