How to send a unique WooCommerce coupon code to new email subscribers

woocommerce unique coupon codes

One of the easiest ways to get more email subscribers and increase your WooCommerce sales is by sending new email subscribers a unique coupon code.

There is one problem though.

Manually creating a new coupon code and sending it to new subscribers is tiresome. And wastes time for both you and your subscribers. That’s why it makes sense to automate the process.

In this tutorial, I’ll show you how to set up a system that automatically sends a coupon email to new email subscribers.

Walkthrough video


To follow along with this tutorial, you need to install at least version 3.0 of WooCommerce (Free) and the latest version of Noptin (also free).

You also need to install the Ultimate Addons Pack for Noptin (premium). This addon will automatically create new unique coupon codes when someone subscribes to your newsletter. You can then include the coupon code in your double opt-in or welcome emails using the [[noptin_coupon_code]] merge tag.

Step 1: Create a WooCommerce Coupon Template

We’ll start by creating a WooCommerce coupon template.

A coupon template is just a normal WooCommerce coupon that Noptin uses when creating new coupon codes. All the properties of this template will be copied to the auto-generated coupon codes.

This includes the coupon type, amount, usage restrictions, and usage limits. The expiry date and allowed emails are ignored.

To create a coupon template:-

First, open your WordPress admin dashboard then go to Marketing > Coupons > Add Coupon to create a new WooCommerce coupon code.

creating a woommerce coupon code

Next, fill in the fields as if you were creating a normal WooCommerce coupon code. After you’re done, click on the publish button to save your discount code.

Make sure the coupon code is set as published, otherwise it will not work. You can set the expiry date in the past if you don’t want normal customers using the coupon.

Finally, copy the coupon code. This is needed for the next step. In the above example, the coupon code is 20_OFF.

Step 2: Add the Template to Noptin

Noptin needs to know about your coupon template before it can create unique WooCommerce coupon codes for new email subscribers.

To add your coupon template to Noptin:-

First, open your WordPress admin dashboard then click on Noptin > Settings> Coupon Codes to open the coupon code settings.

Noptin woocommerce coupon code settings

Next, enter the coupon code that you created in the previous step into the “WooCommerce Template” input box. In the above example, the coupon code is 20_OFF.

noptin woocommerce coupon template

You can also set the coupon expiry (in seconds). When a new unique coupon code is created, it will expire after the number of seconds that you specify here. You can leave this blank if you want the coupon code to last for a lifetime.

Noptin woocommerce coupon template expiry

Finally, click on the “Save Changes” button to save your changes.

From now on, whenever someone subscribes to your newsletter, Noptin will create a unique WooCommerce coupon code that they can use when purchasing from you.

Noptin will automatically delete the automatic coupon code if it expires before being used.

In the next step, we’ll send them their new coupon code.

Step 3: Automatically Send New Email Subscribers their WooCommerce Coupon Code

Now that we’re automatically creating unique coupon codes for new subscribers, let’s set up a welcome email that sends them their coupon code.

To do this:-

First, click on Noptin > Email Campaigns to open the email campaigns management page.

open email campaigns page

Next, click on the Automated Emails tab to open the automated emails management page…

open automated emails tab

… then click on the “New Campaign” button to open the automated campaign creation page.

create new automated email

If this is your first time creating an automated email, Noptin will open the campaign creation page without first opening the campaigns overview page.

Finally, click on the “Welcome New Subscribers” button to create a new campaign. You should click on the “Welcome New Users” button in case you want to send the coupon email to new WordPress users instead of newsletter subscribers.

create welcome email automated campaign

Noptin will open a new screen allowing you to edit and save your campaign.

Use the editor to give your email a subject line, write the email content, and set whether you would like to send the email as soon as someone sign-ups or if you would like to delay for a given number of minutes, hours, or days. You can also specify a subscription source if you only want to send the coupon code to people who sign-up via a specific form.

Save your email automation when you’re done editing.

That’s all.

From now on, when someone subscribes to your newsletter, Noptin will automatically generate and email them a unique WooCommerce coupon code.

Below is an example email.

sample coupon code email
sample coupon code email

2 thoughts on “How to send a unique WooCommerce coupon code to new email subscribers

  1. Does this add-on ensure that a user cannot abuse the system?
    Meaning: Unlimited Coupons being generated for the same email subscriptions.

    1. A single email address will only get a single coupon code. But if they subscribe with several different email addresses then there is no way we can tell them apart, hence a coupon code will be generated for each email address.

Leave a Reply

Your email address will not be published. Required fields are marked *

Custom CSS Slide Example
Custom Animation Example
Default Animation