“Coupon cannot be applied because it does not exist” in WooCommerce: the five causes
WooCommerce shows this when it can't find a published coupon with the code the shopper typed. Here is what counts as a match, and the five reasons a real coupon still isn't found.
In this article13 sections
This notice means WooCommerce looked up the code and found no coupon it is allowed to use. It doesn’t mean the coupon is wrong for this cart. Rules such as minimum spend, products or expiry have their own messages, and WooCommerce only checks them once the coupon is found.
The lookup ignores capital letters and spaces at either end, so SUMMER10, summer10 and Summer10 are the same code. Everything else has to match exactly, and the coupon has to be published.
The exact message#
Coupon “summer10” cannot be applied because it does not exist.
The same failure can also read:
- Sorry, it seems the coupon “summer10” is invalid – it has now been removed from your order.
- The “summer10” coupon has been removed from your cart: Coupon “summer10” cannot be applied because it does not exist.
- “summer10” is an invalid coupon code.
Who sees it: Shoppers, as an error after pressing Apply coupon on the cart or checkout page. The classic and block cart use the same sentence. If the code was already in the cart and its coupon disappeared later, the classic cart removes it with the first variant and the block cart with the second. Store owners see the main message too when adding a coupon to an order in the admin.
What WooCommerce checks#
When a shopper presses Apply coupon, WooCommerce:
- Cleans the code: removes spaces at both ends and converts it to lowercase.
- Gives plugins a chance to supply the coupon through the
woocommerce_get_shop_coupon_datafilter, before any search. Gift card and store credit plugins often work this way. - Searches for a coupon whose code matches, ignoring case. Only coupons with the status Published are searched. If two published coupons share a code, the newest one is used.
- If there is still no coupon, or the coupon found is in the trash, shows this message.
A code already in the cart is checked again each time the cart or checkout page loads. If its coupon has gone since, WooCommerce removes it with a different notice.
Causes and how to fix each one#
1. The code is typed differently#
Capital letters and spaces at the ends don’t matter, but every other character does. A space inside the code, a hyphen instead of an underscore, or a zero instead of the letter O all make a different code. Codes copied from an email or a social post sometimes pick up an extra character too.
Check: Go to Marketing > Coupons and compare the Code column with what the shopper typed, character by character.
Fix: Give the shopper the exact code, or rename the coupon to the code you advertised.
2. The coupon isn’t published#
WooCommerce only searches published coupons. A coupon saved as a draft, left pending review, set to private or scheduled for a future date doesn’t exist as far as the cart is concerned. A scheduled coupon starts working on its publish date.
Check: Open the coupon and look at Status and Publish in the Publish box on the right.
Fix: Press Publish. For a scheduled coupon, wait for the date or change it to publish immediately.
3. The coupon is in the trash or was deleted#
A trashed coupon counts as missing, even though it can still be restored. A permanently deleted coupon is gone. If the shopper had the code in their cart already, they get a notice that the coupon was removed instead.
Check: Go to Marketing > Coupons and open the Trash link above the list.
Fix: Restore the coupon. If it was deleted, create it again with the same code and settings.
4. The coupon was made on a different site#
WooCommerce only looks in the database of the site the shopper is on. Coupons created on a staging copy, on an old store, or on another site in a multisite network don’t carry over by themselves.
Check: Log in to the exact site the shopper is using and search Marketing > Coupons for the code.
Fix: Create the coupon on the live store.
5. The plugin that issued the code isn’t answering#
Gift cards, store credit, points and some affiliate plugins create their codes on the fly instead of saving them as coupons. Those codes never appear in Marketing > Coupons. If the plugin is deactivated, or decides the code isn’t one of its own, WooCommerce finds nothing.
Check: Search Marketing > Coupons for the code. If it isn’t there but customers were given it, a plugin issued it.
Fix: Reactivate the plugin, or check the code’s status in that plugin’s own screens.
Quick reference#
| Cause | How to check | Fix |
|---|---|---|
| The code is typed differently | Go to Marketing > Coupons and compare the Code column with what the shopper typed, character by character. | Give the shopper the exact code, or rename the coupon to the code you advertised. |
| The coupon isn't published | Open the coupon and look at Status and Publish in the Publish box on the right. | Press Publish. For a scheduled coupon, wait for the date or change it to publish immediately. |
| The coupon is in the trash or was deleted | Go to Marketing > Coupons and open the Trash link above the list. | Restore the coupon. If it was deleted, create it again with the same code and settings. |
| The coupon was made on a different site | Log in to the exact site the shopper is using and search Marketing > Coupons for the code. | Create the coupon on the live store. |
| The plugin that issued the code isn't answering | Search Marketing > Coupons for the code. If it isn't there but customers were given it, a plugin issued it. | Reactivate the plugin, or check the code's status in that plugin's own screens. |
Reproduced on a test store#
We set up each case below on a clean WooCommerce 11.2.1 store on 6 November 2026 and recorded exactly what it showed.
| What we did | What WooCommerce showed |
|---|---|
| Published coupon summer10, Percentage discount 10. Simple product priced 20 in the cart, logged out. Apply the code summer-10. | Coupon "summer-10" cannot be applied because it does not exist. |
| Same coupon. Apply the code ' SUMMER10 ' (capitals, a space at each end). | No message. The coupon was applied. |
| Coupon draft10 saved as Draft, otherwise identical. Apply draft10. | Coupon "draft10" cannot be applied because it does not exist. |
| Coupon future10 with its publish date set to tomorrow (status Scheduled). Apply future10. | Coupon "future10" cannot be applied because it does not exist. The coupon's status was Scheduled. |
| Coupon trash10, published, then moved to the trash. Apply trash10. | Coupon "trash10" cannot be applied because it does not exist. |
| Store using the cart block. Apply summer10, then move the coupon to the trash in the admin and reload the cart page. | The "summer10" coupon has been removed from your cart: Coupon "summer10" cannot be applied because it does not exist. |
For developers#
To see whether WooCommerce can find a code, run this in wp shell:
var_dump( wc_get_coupon_id_by_code( 'summer10' ) );It returns 0 when no published coupon has that code. Codes supplied by plugins don’t show up here, because they come from the woocommerce_get_shop_coupon_data filter when the coupon object is built. To change the wording, filter woocommerce_coupon_error and match error code 105 (WC_Coupon::E_WC_COUPON_NOT_EXIST).
Where this lives in WooCommerce 11.2.1:
includes/class-wc-cart.php,WC_Cart::apply_coupon: Cleans the code, loads the coupon and shows the validation error. Also rejects a code that resolves to a coupon with a different code.includes/wc-core-functions.php,woocommerce_coupon_code filter: wc_sanitize_coupon_code and wc_strtolower run on every code, so codes are trimmed and lowercased.includes/wc-coupon-functions.php,wc_get_coupon_id_by_code: Looks the code up (cached) and returns 0 when nothing is found.includes/data-stores/class-wc-coupon-data-store-cpt.php,WC_Coupon_Data_Store_CPT::get_ids_by_code: Case-insensitive title match, post_status = publish only, newest first.includes/class-wc-coupon.php,WC_Coupon::__construct: Plugins can supply a coupon through woocommerce_get_shop_coupon_data before the database is searched.includes/class-wc-discounts.php,WC_Discounts::validate_coupon_exists: Throws this message (code 105) when the coupon has no ID and isn’t virtual, or is in the trash.includes/class-wc-cart.php,WC_Cart::check_cart_coupons: Re-checks applied coupons when the cart or checkout loads and removes failing ones with the generic notice.src/StoreApi/Utilities/CartController.php,CartController::apply_coupon / CartController::validate_cart_coupon: Block wording: the invalid-code message and the removed-from-cart wrapper.
Related WooCommerce errors#
- Coupon “summer10” has expired.
- Usage limit for coupon “summer10” has been reached.
- Sorry, coupon “summer10” is not applicable to selected products.
Back to the WooCommerce error reference.
Frequently asked questions#
Are WooCommerce coupon codes case sensitive?
No. WooCommerce converts every code to lowercase before looking it up, and removes spaces at both ends. Spaces and other characters inside the code still have to match.
The coupon is in my admin. Why does WooCommerce say it doesn't exist?
Check its status. Only published coupons are found. Drafts, pending, private, scheduled and trashed coupons all produce this message.
Why do I see "Coupons are disabled" instead?
Coupons are switched off for the whole store. Only the cart and checkout blocks show this message; the classic cart ignores the code without a notice. The blocks normally hide the coupon field then, so the message usually comes from a page that was loaded before the setting changed, or from something else sending the code. Turn coupons on under WooCommerce > Settings > General with the Enable the use of coupon codes box.
Why was a coupon removed with "it seems the coupon is invalid"?
The code was in the cart and failed a check when the page loaded again. The coupon may have been deleted or unpublished, or it may have expired or stopped matching the cart. The classic cart doesn’t say which. The block cart adds the reason after a colon.
What happens if two coupons have the same code?
WooCommerce warns when you save the second one: “Coupon code already exists – customers will use the latest coupon with this code.” The newest published coupon is used and the older one is ignored.