How to create discount coupons in WooCommerce
Coupons are one of the easiest ways to run offers, reward loyal customers or track which campaign brought a sale. This guide shows you how to create discount coupons in WooCommerce step by step: choosing the discount type, setting expiry dates and minimum spend, limiting usage, offering free shipping, restricting the coupon to certain products or categories, and testing it before you share it.
Before you start: enable coupons
Go to WooCommerce → Settings → General and make sure Enable the use of coupon codes is ticked, then save. Without it, the coupon field will not appear in the cart or checkout.
Step 1: Add a new coupon
- Go to Marketing → Coupons and click Add coupon.
- Type the coupon code in the top field, e.g.
WELCOME10, or click Generate coupon code. Codes are not case-sensitive for customers. - Optionally add a Description for your team (customers do not see it), such as "Instagram campaign – November".
Step 2: Choose the discount type (General tab)
| Discount type | What it does | Example |
|---|---|---|
| Percentage discount | Takes a percentage off the eligible items in the cart. | 10% off the whole order. |
| Fixed cart discount | Takes a fixed amount off the cart total once. | A fixed amount off orders above a minimum spend. |
| Fixed product discount | Takes a fixed amount off each eligible item (per quantity). | A fixed amount off every unit of a selected product. |
Then fill:
- Coupon amount: the number only (e.g. 10 for 10%, or the amount in your currency).
- Allow free shipping: tick it to give free shipping with this coupon (see Step 5).
- Coupon expiry date: the coupon stops working at the end of this date. Leave empty for no expiry.
Step 3: Usage restriction
- Minimum spend / Maximum spend: the cart subtotal must be within this range for the coupon to work.
- Individual use only: prevents combining this coupon with other coupons.
- Exclude sale items: the coupon will not apply to products that already have a sale price.
- Products / Exclude products: apply the coupon only to selected products, or exclude some.
- Product categories / Exclude categories: the same idea for whole categories, e.g. only "Summer collection".
- Allowed emails: only customers with these billing emails can use the coupon (useful for personal coupons).
Step 4: Usage limits
- Usage limit per coupon: total times the coupon can be used by everyone, e.g. the first 50 orders.
- Limit usage to X items: for product-level discounts, the maximum number of items the discount applies to.
- Usage limit per user: how many times one customer can use it (checked by account or billing email).
Click Publish to activate the coupon.
INSTA15, TIKTOK15). The Usage / Limit column in Marketing → Coupons then shows you which channel brought the most orders.Step 5: Free shipping coupons
A free shipping coupon needs two things:
- In the coupon, tick Allow free shipping (you can set the amount to 0 if you only want free shipping).
- In WooCommerce → Settings → Shipping, open the relevant zone(s), add the Free shipping method and set Free shipping requires to A valid free shipping coupon (or "A minimum order amount OR a coupon").
Without the Free shipping method in the zone, the coupon applies but shipping is still charged.
Step 6: Test the coupon
- Open the store in a private window, add eligible products and apply the code in the cart or checkout.
- Check the discount amount, then test a cart that should not qualify (below minimum spend, excluded product) and confirm you see an error message.
- If you use a usage limit per user, test while logged in and with a guest email.
Common problems
- "Coupon is not valid" or "does not exist": the coupon is still a draft, expired, or the code was typed with extra spaces.
- Coupon field not shown: coupons are disabled in General settings, or your theme/checkout hides the field.
- Discount is bigger than expected: you probably chose Fixed product discount (applies per item) instead of Fixed cart discount.
- Coupon does not work on discounted products: Exclude sale items is ticked.
Frequently asked questions
Can a coupon apply automatically without the customer typing it?
Not by default. You can share a link in your ads, but automatic coupons need a plugin. Many stores use a sale price on the product instead. See How to add a new product in WooCommerce for setting sale prices.
Can I create hundreds of unique codes?
Core WooCommerce creates coupons one by one. Bulk unique codes need a plugin or an import tool.
Can I schedule a coupon to start on a future date?
WooCommerce has an expiry date but no start date field. You can publish the coupon on the start day, or schedule the coupon post itself if your setup allows it.
Can I discount a whole category for a season?
Yes, use a Percentage discount with Product categories, or update sale prices in bulk as shown in How to add and edit WooCommerce products in bulk.
Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.