How to Setup

This article is about how to create shopping cart price rule and join with newsletter subscription form

First of all you need to create a coupon.

Go to Admin Panel >> Promotions >> Shopping Cart Price Rules >> Add New Rule.
Choose "Coupon – Specific Coupon“.  Check "Use Auto Generation" or enter your coupon code. Set "Uses per coupon" and "Uses per customer" to 1.

Join coupon and newsletter

Go to System >> Configuration >> Magetrend Extensions >> Newsletter Popup (FREE) >> Coupon Settings >> Shopping Cart Price Rule >> Choose before created cart price rule.

Add coupon code to "newsletter subscription success" email

First go to Admin Panel >> System >> Transactional Emails >> Add New OR edit your already existing template. Insert this code in your template:  {{var

Avoid re-subscribers

To avoid new coupon generation for already subscribed or resubscribed emails, use this code in template:

{{if subscriber.isObjectNew()}}
{{var subscriber.couponCode}}

Change newsletter success email template

Set before already created template as primary template.
Go to Admin Panel >> System >> Configuration >> Newsletter >> Subscription Options >> Success Email Template >> Choose your template.