Including discount codes in your abandoned cart recovery emails can be a great way of getting a sale completed. There are a couple of different options for including discount codes:

  • fixed discount code
  • dynamic discount codes

Fixed discount codes

When you’re using the Cart Recovery for WordPress plugin you have full control over your email content, so it’s easy to add in fixed discount codes like this into your campaign email:


Screenshot of fixed discount codes in recovery email


Obviously you can be as creative as you want here – working the code into buttons, images or banners in the email for best effect.

Using fixed codes like this has its advantages:

  • easy to set up – just create the code in your store, include it in your campaign text and you’re done
  • you can  track how often your code is being used by reviewing it in your store’s admin area

It can have some disadvantages though. Fixed discount codes like this tend to get shared on discount sites, with potentially anyone able to take advantage of the code even if they’ve never had an abandoned cart, and would have been happy to complete the purchase at full price if a code wasn’t available.

“Hey everyone, did you know you can get 10% off at Acme Inc. using code WELCOMEBACK!? “

The best way to get around that is by creating unique, single-use codes for each customer. Even if a customer does share the code – it can only be used once.

Dynamic discount codes

Fortunately – this is something that Cart Recovery for WordPress Pro makes a breeze. When you’re setting up your campaign you can use the special replacement tag {discount}. When your campaign is triggered, the plugin will automatically generate a unique, one-time use discount code, and replace the code details into the email.

So, this:

Take 10% off your order with the code {discount}

gets automatically turned into:

Take 10% off your order with the code TEMPTING-2FD7EF1B

The 2FD7EF1B part of the code is unique to a single customer – each email that goes out will have its own unique code.

You specify the discount code settings when setting up your campaign. You can choose to give a fixed amount discount, e.g. $10, or a percentage discount. You can even specify a prefix that will be used at the start of each of your codes – we used TEMPTING in the example above. This can make the codes friendly to customers, and if you use different prefixes for different campaigns can let you see at a glance which campaign was responsible for which code use.

Screenshot of admin page for setting up dynamic discount codes.

The discount codes are manageable within your store as normal, whether it’s WooCommerce, Easy Digital Downloads, or WP e-Commerce. Each code is set to be usable just one time – helping you avoid giving away needless discounts.

With the pro add-on, discount codes can be configured for each campaign separately, so you can choose to only include discount codes in some of the campaign emails, e.g. only provide a code in the last email. Alternatively, you could provide different codes in different emails, for example a 5% off code in the first email, and a 10% discount in the final email.

Happy discounting!

  • This feature works with our WooCommerce, Easy Digital Downloads, WP e-Commerce, and Restrict Content Pro integrations.
  • This feature requires Cart Recovery for WordPress Pro v1.2.0 or higher.