NewThe WP Tutoring WordPress training platform is live — on demand video courses and interactive WordPress lessons. Free lessons included.Start free
Helping site owners learn WordPress since 2012 · (844) WP-TUTOR
WooCommerce

WooCommerce Coupons: Create Discount Codes That Behave

Create a WooCommerce coupon step by step — discount types, expiry, usage limits, and the restrictions that stop a code from being abused.

WT
WP Tutoring TeamWordPress Instructors
Updated Aug 26, 2026
2 min read
Table of contents

A discount code is the simplest marketing machine a store has — and WooCommerce ships coupon management in core. The skill isn't creating the code; it's the restrictions that keep it from costing you money. Screenshots from WooCommerce on WordPress 7.0, August 2026.

TL;DR The 30-second version
  • Create codes under Marketing → Coupons (or WooCommerce → Coupons).
  • Three discount types: percentage, fixed cart, fixed product.
  • Always set an expiry date and a usage limit — future-you will be grateful.
  • Usage restrictions (minimum spend, products, emails) prevent stacking surprises.
Create the coupon

Go to Marketing → Coupons → Add coupon. The code is what customers type — short, memorable, uppercase by convention: WELCOME10.

The coupons list showing the welcome10 code

Set the discount

In the General tab pick the discount type and amount — here 10% off the cart. This tab also holds free shipping (tick to let this code unlock the free-shipping method) and the expiry date.

Editing a coupon's general settings

Restrict it

Two more tabs decide how safe the code is:

  • Usage restriction — minimum/maximum spend, include/exclude specific products or categories, exclude sale items, limit to certain billing emails, and "individual use only" (can't combine with other coupons).
  • Usage limits — total uses across the store and uses per customer.

A launch code without limits has a way of ending up on coupon sites with unlimited uses. 100 uses, 1 per customer, expires in 30 days is a sane default.

Test it at checkout

Add a product to the cart, apply the code, and confirm the discount line appears and the math is right. Then test a cart that shouldn't qualify (below minimum spend, excluded product) and make sure it's rejected.

Coupons as links

Share codes in email and social posts with clear terms. If you want auto-applied discount links or scheduled sales, that's extension territory — ask us before buying one; half the "coupon plugins" overlap with what core already does.

Keep learning

Frequently asked questions

Why isn't my WooCommerce coupon working?
Usually one of four things: coupons are disabled in WooCommerce → Settings → General ("Enable the use of coupon codes"), the code expired, a usage limit was reached, or a restriction (minimum spend, excluded products, email match) isn't satisfied for that cart.
What's the difference between a percentage and fixed cart discount?
Percentage discount takes a percent off the whole cart; fixed cart discount takes a set amount off the cart total; fixed product discount takes a set amount off each qualifying product. For "10% off everything," use percentage.
Can a coupon apply automatically without customers typing it?
Not in core WooCommerce — codes are typed at checkout. Auto-applying by URL or cart contents needs an extension, or the "Free shipping" method's built-in coupon requirement for that one case.
WT

WP Tutoring Team

WordPress Instructors

We’ve been teaching WordPress to individuals and businesses since 2013 — through step-by-step tutorials, video courses, and 1-on-1 tutoring sessions.

Leave a comment

Comments are reviewed before they appear.

Get our free WordPress starter guide

Join thousands of site owners and get step-by-step WordPress tutorials in your inbox, plus printable cheat sheets.

Beginner-friendly, no jargon
Printable cheat sheets & checklists
Unsubscribe anytime

Request your session

We’ll reply quickly — usually the same business day.

By using this form you agree with the storage and handling of your data by this site.

Access our WordPress Training Academy videos

Step-by-step video courses covering the block editor, themes, plugins, and everything you need to build a site you’re proud of. Free lessons included — browse the full library before you sign up for anything.

Explore the Academy