How to create a coupon code in WooCommerce

How to create a coupon code in WooCommerce.


You can create a coupon code in WooCommerce yourself in a few minutes. Go to Marketing > Coupons, add a new coupon, choose the discount type and amount, set any limits and publish it. This guide walks you through each step, including free shipping coupons and the settings that most often stop a code from working.

With the festive season here, a well-set-up coupon is a simple way to reward loyal customers or run a short promotion.

Who can create coupons in WooCommerce?

Only users with the Administrator or Shop manager role can create and manage coupons. If you can’t see Marketing > Coupons in your dashboard, your user account probably has a different role, and the person who manages your website will need to change it for you.

The steps below are for the standard WooCommerce admin screens. Some themes and plugins add their own coupon tools, so your screen may look slightly different.

How do you turn coupons on?

Go to WooCommerce > Settings > General, tick “Enable the use of coupon codes” and select Save changes. You only need to do this once. If coupons are switched off here, customers won’t see a coupon field at all, even if you’ve created codes.

  1. In your WordPress dashboard, go to WooCommerce > Settings.
  2. Stay on the General tab and scroll to Enable coupons.
  3. Tick Enable the use of coupon codes.
  4. Select Save changes.

How do you create a coupon in WooCommerce?

Go to Marketing > Coupons and select Add new coupon (or Create your first coupon). Enter a code, choose a discount type, enter the amount as a number only and select Publish. You can add spending limits and usage limits on the other tabs before publishing.

Step 1: add the coupon code

  1. Go to Marketing > Coupons.
  2. Select Add new coupon. If it’s your first one, select Create your first coupon.
  3. Type your code in the coupon code field, for example SUMMER15, or select Generate coupon code to let WooCommerce create one.
  4. Add a Description if you like. Customers don’t see it, so use it as a note to yourself, such as “December newsletter offer”.

Coupon codes aren’t case-sensitive, so customers can type summer15 or SUMMER15.

Step 2: choose the discount on the General tab

Pick one of three options under Discount type:

  • Percentage discount: a percentage off the eligible products.
  • Fixed cart discount: a fixed amount off the whole cart.
  • Fixed product discount: a fixed amount off each eligible item.

Then enter the Coupon amount as a number only. For 15% off, type 15. For R100 off, type 100. Don’t add R or %.

On the same tab, you can tick Allow free shipping (more on this below) and set an expiry date. WooCommerce says a coupon can’t be used on or after its expiry date, so set it for the day after your promotion ends.

Step 3: set restrictions on the Usage restriction tab

This is where you control when the coupon applies:

  • Minimum spend and Maximum spend set the cart subtotal range.
  • Individual use only stops customers combining this code with other coupons.
  • Exclude sale items keeps the discount off products that are already on sale.
  • Products, Exclude products, Product categories and Exclude categories limit the coupon to, or keep it away from, specific items.
  • Allowed emails limits the coupon to certain billing email addresses. You can use a wildcard, such as *@yourcompany.co.za, for staff discounts.

Step 4: set limits on the Usage limits tab

  • Usage limit per coupon sets how many times the code can be used in total.
  • Limit usage to X items caps how many items get a percentage or fixed product discount.
  • Usage limit per user sets how many times each customer can use it. For a “first order” code, set this to 1.

Step 5: publish and test

Select Publish. If you want the coupon to go live later, select Edit next to the publish date, choose the date and time, select OK and then Schedule.

Before you share the code, test it. Add an eligible product to your cart, apply the code and check the discount. Then try a cart that shouldn’t qualify and make sure the code is rejected.

How do you make a free shipping coupon work?

Tick Allow free shipping on the coupon, then edit your Free shipping method under WooCommerce > Settings > Shipping and set “Free shipping requires” to an option that includes a coupon. Both settings are needed. Ticking the box on the coupon alone won’t give free shipping.

This is the question that comes up most often in the WooCommerce support forums. Here’s how to set up the shipping side:

  1. Go to WooCommerce > Settings > Shipping and open your shipping zones.
  2. Select Edit on the zone you deliver to, for example South Africa.
  3. If there’s no Free shipping method yet, select Add shipping method, choose Free shipping and select Continue.
  4. In the Free shipping settings, set Free shipping requires to A valid free shipping coupon. You can also choose A minimum order amount OR a coupon or A minimum order amount AND a coupon.
  5. Save your changes.

Remember that ordinary coupons don’t reduce shipping costs. Only a free shipping coupon does.

Why isn’t my WooCommerce coupon working?

WooCommerce shows a message explaining why a coupon was rejected. The usual causes are a typing error in the code, an expiry date that has passed, a cart outside the minimum or maximum spend, product or email restrictions, or a usage limit that has been reached.

Some other things to know:

  • Discounts apply before tax. The discount is worked out first, then VAT is calculated on the lower price.
  • Exclude sale items and fixed cart discounts. A fixed cart discount can still apply if the cart has some eligible items that aren’t on sale.
  • Individual use only blocks other coupons, so a customer can’t add a second code.

If you’re running a sale price at the same time, our guide on how to schedule a sale price in WooCommerce explains how sale prices work, which helps you decide whether to tick Exclude sale items.

Common mistakes to avoid

  • Typing the currency or percentage sign in the Coupon amount field.
  • Forgetting the expiry date, so a festive code keeps working in February.
  • Not setting a usage limit per user on welcome or first-order codes.
  • Ticking Allow free shipping without changing the shipping method.
  • Not testing the code before it goes out in a newsletter or social post.

What this means for your store

Coupons are one of the most useful tools in WooCommerce, and you don’t need a developer to set them up. Start with a simple percentage or fixed discount, add an expiry date and a sensible usage limit, and test it before sharing.

Keep in mind that coupon codes can travel further than you plan. Our article on AI search showing coupon codes explains why it’s worth setting expiry dates and limits on every public code.

Frequently asked questions

Stuck setting up your store's promotions?

If a coupon won’t behave or you’d like a quick walkthrough of your WooCommerce dashboard, we’re happy to help. Find out about our WordPress website support and maintenance or contact us.