How to Setup

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

First you need to create shopping cart price rule.

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 subscription form

Go to Admin Panel >> System >> Configuration >> MageTrend Extensions >> Exit Popup >> Coupon Settings >> Shopping Cart Price Rule >> Choose your before created coupon and save settings.

Coupon settings

  1. Is Active – enables or disables coupon function.
  2. Shopping Cart Price Rule – there is a function which joines your coupon and newsletter.
  3. Length – Coupon code's length, excluding prefix, suffix, and separators.
  4. Format – Coupon code's format.
  5. Prefix/Sufix/Dash – Coupon code's settings.

Add coupon code to newsletter success email

Note: If you are using mailChimp service, you can skip this step. First go to Admin Panel >> System >> Transactional Emails >> Add New OR edit your already existing template. Insert this code in your template: {{var subscriber.exit_popup_coupon_code}}
 
 

Avoid re-subscribers

Note: If you are using mailChimp service, you can skip this step. To avoid new coupon generation for already subscribed or resubscribed emails, use this code in template: {{if subscriber.isObjectNew()}} {{var subscriber.exit_popup_coupon_code}} {{/if}}  

Set newsletter success email template

Note: If you are using mailChimp service, you can skip this step. Set before already created template as primary template. Go to Admin Panel >> System >> Configuration >> Newsletter >> Subscription Options >> Success Email Template >> Choose your template.