Skip to content
GPLWP Guides

How to create coupon codes in WooCommerce

WooCommerce Time About 10 minutes 6 steps Updated 25 Sep 2026

WOOCOMMERCE
The short answer

WooCommerce includes coupon creation, so you do not need a plugin for a normal discount code. Enable coupons, create one under Marketing > Coupons, choose the discount type, add restrictions or limits, then publish and test it in the cart.

The route
  1. 01Enable coupon codes
  2. 02Create the coupon
  3. 03Set the discount rules
  4. 04Add usage limits and shipping
  5. 05Publish and test the code
  6. 06Use a tool for bulk promotions

What you need

  • A WooCommerce store with admin access
  • A clear discount offer and coupon code
  • A shipping zone if the coupon includes free shipping

Enable coupon codes

Go to WooCommerce > Settings > General, find the coupon option, tick Enable the use of coupon codes, and save the changes. If this setting is off, customers will not be able to apply codes at the cart or checkout.

In current WooCommerce screens, coupons are managed under Marketing > Coupons. Older installations may show a coupon link under the WooCommerce menu.

Create the coupon

Go to Marketing > Coupons and select Add new coupon. Enter a code that customers can type, or use WooCommerce’s random code generator. Coupon codes are not case-sensitive, so avoid relying on capital letters to distinguish two codes.

Add an internal description if useful, then choose Percentage discount, Fixed cart discount, or Fixed product discount. Enter the amount without a currency symbol or percent sign. Set an expiry date if the promotion is time-limited, then leave the coupon unpublished until its other settings are ready.

Set the discount rules

Open Usage restrictions to control where the coupon works. You can set a minimum or maximum spend, include or exclude products or categories, exclude sale items, allow only particular email addresses, and prevent the coupon from being combined with another coupon.

Check the minimum-spend rule carefully: WooCommerce uses the cart subtotal plus tax for this check. Leaving the product and exclusion fields empty allows the coupon to apply to all products.

Add usage limits and shipping

Open Usage limits to set the total number of uses, the number of uses per customer, or the number of items to which a product discount can apply. The item limit only works when specific products are selected in the usage restrictions.

For free shipping, tick Allow free shipping. You must also have a free-shipping method configured in the relevant shipping zone, and that method must allow a valid free-shipping coupon. Otherwise the code may discount the order without removing the delivery charge.

Publish and test the code

Select Publish, then test the code as a customer. Add an eligible product to the cart, enter the code in the coupon field, and check the discount, tax, shipping charge, expiry behaviour and remaining usage limit.

Test an ineligible product or an order below the minimum spend as well. The common Friday problem is a code that works in the admin preview but fails for customers because the product, sale-item, email or shipping restriction does not match the cart.

Use a tool for bulk promotions

For one or a few ordinary coupon codes, the built-in WooCommerce screen is the fast way and is usually all you need. Use a coupon-focused plugin when you need many unique codes, want to display codes inside posts or pages with shortcodes, or need extra expiry and usage controls.

Flexible Coupons Shortcodes is a suitable optional add-on for shortcode-based coupon creation and display, usage limits and expiry dates. Install it only after confirming that its extra features match the promotion you need; it is not required for standard WooCommerce coupons.

The fast route

Let Flexible Coupons Shortcodes do it

Shortcode-based coupon creation and display with limits and expiry dates; ideal for promoting codes across posts and pages.

Get Flexible Coupons Shortcodes

Sources

  1. woocommerce.com /document/coupon-management/?utm_source=openai
  2. woocommerce.com /document/free-shipping/?utm_source=openai

Questions

Can WooCommerce create coupon codes without a plugin?
Yes, WooCommerce can create standard coupon codes without another plugin. Enable coupons in WooCommerce settings, then use Marketing > Coupons to choose a code, discount type, amount, restrictions, usage limits and expiry date. A plugin is only needed for features outside the built-in coupon system, such as bulk generation, advanced targeting or displaying coupons through shortcodes.
What is the difference between WooCommerce coupon discount types?
Percentage discount removes a percentage from eligible items, fixed cart discount removes one fixed amount from the cart, and fixed product discount removes a fixed amount from each eligible item. Choose fixed cart discount for a basket-wide offer and fixed product discount when the amount should apply separately to each selected product.
Why is my WooCommerce coupon code not working?
A coupon usually fails because coupons are disabled, the code is expired, the cart misses the minimum spend, the products or categories are excluded, a sale item is present, the usage limit has been reached, or the customer email is not allowed. Check Usage restrictions and Usage limits, then test the exact customer cart rather than only the coupon edit screen.
How do I limit a WooCommerce coupon to one use per customer?
Edit the coupon, open Usage limits, and set Usage limit per user to 1. This limits use for the customer identity WooCommerce can verify, but it is not a perfect substitute for fraud prevention when shoppers can create multiple accounts or use guest checkout. For stricter customer, location or abuse controls, you need an extension that adds those checks.