Guide · Cart

How to create coupons in WooCommerce

Coupons are built into WooCommerce: no plugin is needed to create a code, limit who can use it and how often, or tie it to a cart total. Core never applies a discount on its own: the shopper types the code, a checkout link carries it, or a plugin or custom code applies it.

We set up the three discount types in a fresh WooCommerce 11.3.1 store on 5 December 2026 and applied each, with its own checkout link, to the same cart of three $24 mugs, so you can see what each one takes off.

Updated By the SalesMax team at 8theme

Disclosure: SalesMax is our plugin, made by 8theme. Everything on this page about WooCommerce comes from its documentation, linked under Sources, and from our own test. Checked 5 Dec 2026.

Create a coupon

  1. Check that coupons are on: WooCommerce → Settings → General, Enable the use of coupon codes.
  2. Go to Marketing → Coupons and press Add coupon (Create your first coupon if you have none). The Add new coupon screen opens.
  3. Type a code, or press Generate coupon code. Codes are not case-sensitive: SAVE10 and save10 are the same code. The description is for you; shoppers do not see it.
  4. On the General tab choose the Discount type and the Coupon amount (a number only, no $ or %), and optionally Allow free shipping and a Coupon expiry date.
  5. Set the Usage restriction and Usage limits tabs if you need them, then Publish.
The WooCommerce Add new coupon screen: Coupon code field, Generate coupon code button, and the Coupon data box with General, Usage restriction and Usage limits tabs
Add new coupon in WooCommerce 11.3.1. In our fresh store the discount type started on Fixed cart discount.

The three discount types, tested

WooCommerce has three discount types. We gave the same cart, three mugs at $24 ($72), each kind of coupon:

Discount typeWhat it doesOur testDiscount
Percentage discountA percentage off eligible products10%−$7.20
Fixed cart discountOne amount off the whole cart$10−$10.00
Fixed product discountAn amount off each eligible item$5, limited to the mug−$15.00 ($5 × 3)
Three WooCommerce order summaries for the same $72 cart: coupon save10 takes $7.20 off, tenoff takes $10.00, mug5 takes $15.00; the $5 flat rate is the same in all three
The same cart with save10, tenoff and mug5. The $5 shipping stays the same in all three.

Watch the fixed product discount: it multiplies by the quantity. If you mean “$5 off the order”, use a fixed cart discount.

Usage restriction

  • Minimum spend and Maximum spend: the lowest and highest cart subtotal the code accepts, as displayed, so tax counts when your cart shows prices with tax. Since WooCommerce 11.2 the minimum must not be above the maximum.
  • Individual use only: the coupon cannot be combined with other coupons.
  • Exclude sale items: no discount on products already on sale.
  • Products and Exclude products, Product categories and Exclude categories, Product brands and Exclude brands: which items the coupon applies to, or which must or must not be in the cart.
  • Allowed emails: the billing emails that may use it. An asterisk works as a wildcard, so *@example.com allows a whole domain.

The cart-total discount guide covers the “spend $X, get Y% off” case in detail.

Usage limits and expiry

  • Usage limit per coupon: how many times the code can be used in total.
  • Limit usage to X items: how many items get a percentage or fixed product discount. It does not limit a fixed cart discount.
  • Usage limit per user: how many times each customer can use it.
  • Coupon expiry date, on the General tab: the coupon cannot be used on the date you set.

To start a coupon later, change the date in the Publish box and press Schedule.

When a code is refused

WooCommerce tells the shopper why a code does not apply. In our store, a 15% coupon with a $100 minimum, typed into the Cart block with $72 in the cart, gave this:

The WooCommerce Cart block with the code big100 entered and a red message: The minimum spend for coupon big100 is $100.00
A refused code in the Cart block: the message names the minimum.

Before you send a code out, try it in a cart that should work and in one that should not, as WooCommerce’s documentation suggests, and read both messages as a shopper would.

Getting the code to shoppers

  • They type it. The Cart and Checkout blocks have an Add coupons field. Print the code where the shopper will see it: a banner, the product page, an email.
  • It travels in a link. A WooCommerce checkout link can carry it: /checkout-link/?products=123:1&coupon=SAVE10 adds the product, applies the code if it is valid for that cart, and opens the checkout. It empties the cart first; the one-page checkout guide has the details.
  • It is written for each buyer. WooCommerce’s documentation points to AutomateWoo or MailPoet for automated coupon emails. In SalesMax, which is ours, the Next Order Coupon booster creates a WooCommerce coupon after an order that matches its conditions and shows it on the thank-you page, in the order email or in My Account; the next order coupon guide compares the ways.

Anything automatic beyond that, such as a discount that applies itself once the cart passes an amount, needs a plugin or custom code.

Tax, shipping and stacking

  • Tax: coupons apply to prices before tax is calculated, and a fixed cart discount is split across the products in the cart.
  • Shipping: coupons do not reduce the shipping cost itself, as our test shows, except a free shipping coupon: tick Allow free shipping, add a Free shipping method to the zone and set Free shipping requires to A valid free shipping coupon (or one of the minimum amount OR / AND a coupon options). One catch: if free shipping starts at a minimum amount, WooCommerce checks that amount after the discount unless you tick Apply minimum order rule before coupon discount, so a coupon can take a cart below it.
  • Stacking: shoppers can use several coupons unless one is set to Individual use only. Calculate coupon discounts sequentially, under WooCommerce → Settings → General, applies each coupon to the price left after the previous one. WooCommerce runs fixed product coupons first, then percentage, then fixed cart; the order the shopper typed them only breaks ties.

Questions

How do I create a coupon in WooCommerce?

Make sure Enable the use of coupon codes is ticked under WooCommerce → Settings → General, then go to Marketing → Coupons and press Add coupon. Enter a code or press Generate coupon code, choose the discount type and amount, set any restrictions and limits, and publish.

What is the difference between a fixed cart and a fixed product discount?

A fixed cart discount takes one amount off the whole cart; a fixed product discount takes the amount off each eligible item. In our test, $10 fixed cart took $10.00 off three $24 mugs, and $5 fixed product took $15.00 off the same three.

Can a WooCommerce coupon give free shipping?

Yes. Tick Allow free shipping on the coupon, add a Free shipping method to the shipping zone and set Free shipping requires to A valid free shipping coupon. Other coupons do not reduce the shipping cost, though a discount can take a cart below a free-shipping minimum.

Are WooCommerce coupon codes case-sensitive?

No. WooCommerce’s documentation says SAVE10 and save10 both work.

Why does WooCommerce say the minimum spend for my coupon is not met?

Minimum spend is checked against the cart subtotal as displayed, including tax when your cart shows prices with tax. In our test a $72 cart and a $100 minimum gave the message: The minimum spend for coupon "big100" is $100.00.

Sources

Each page below was read on 5 December 2026. The discounts, the error message and the screenshots come from a fresh WordPress Playground site with WooCommerce 11.3.1, set up the same day.

Show all 6 sourcesShow fewer sources

AI Store Scan

See which upsell offers your store already runs.

The AI Store Scan reads your public storefront pages and lists the upsell offers it finds and the ones it does not.

All 17 boosters in every planFrom $7/mo · billed annually
See plans