Blog

How to Fix WooCommerce Coupon Codes Not Working at Checkout

How to Fix WooCommerce Coupon Codes Not Working at Checkout

A coupon that fails at checkout can turn a ready-to-buy customer into a support request in seconds. The cause is often a restriction, an expired offer, or a cart that does not qualify, rather than a broken payment gateway.

Start by separating three problems: the coupon field is missing, the code is rejected, or the code applies but produces an unexpected total. Each points to a different set of checks, and identifying which one you have saves a lot of guesswork.

Start with the exact error and a matching cart

Before changing settings, reproduce the problem using the same products, quantities, and coupon code. Record the exact error message and whether the customer was signed in or checking out as a guest.

A coupon restricted to certain products or email addresses can work perfectly in your administrator account and fail for a customer. Testing with a different cart can hide the actual cause.

  • Copy the code from the promotion, checking for extra spaces or punctuation.
  • Record the products and variations in the cart, including sale items.
  • Note any other coupons or automatic discounts already applied.
  • Check whether the failure happens in the cart, at checkout, or after entering billing details.
  • Record the time of the failure and any recent plugin, theme, or promotion changes.

Use a private browser window for a fresh guest test. This helps separate an existing browser session from a problem affecting everyone, although it does not bypass server caching or coupon restrictions.

Do not remove every restriction from a live promotional code just to make it work. You could accidentally turn a targeted offer into a discount available across your entire store.

Check whether coupons are enabled and visible

If customers cannot find anywhere to enter a code, check WooCommerce's general settings for the option to enable coupons. Dashboard labels can change, so consult the official WooCommerce documentation if your settings look different.

Next, inspect the actual checkout page. A coupon entry area may be collapsed behind a link, hidden by a checkout extension, or removed through a theme setting or custom code.

WooCommerce supports both block-based and classic checkout experiences. A checkout customization designed for one may not behave correctly with the other, so identify which your store uses before following troubleshooting instructions.

Check on a phone as well as a desktop. If the coupon field appears on one screen size only, investigate the page layout and styling before editing coupon rules.

Review the coupon itself

Open the coupon, typically under Marketing > Coupons, and confirm that it is published. A draft coupon or a code that was deleted and replaced will not behave like an active offer.

Confirm the code and expiry date

Compare the saved code with the wording in your email, advertisement, or website banner. Look for similar-looking characters, copied quotation marks, and spaces introduced when someone pasted the code.

Check the expiry date and the WordPress site's timezone. A business promoting an offer across Canada needs a clear closing time because customers may be shopping several time zones away.

Do not assume a coupon remains valid until the end of the date entered in its expiry field. Confirm WooCommerce's expiry behaviour in the current documentation, then test the intended cutoff and make the promotional wording match.

Check the discount type and amount

A percentage discount, a fixed cart discount, and a fixed product discount do different jobs. A fixed product discount can behave differently as eligible quantities change, while a fixed cart discount is allocated across eligible cart items.

Confirm that the amount is entered in the format the field expects. Also check whether a coupon extension adds a maximum discount, scheduling rules, or other conditions that are separate from WooCommerce's built-in settings.

Check spending requirements and product restrictions

Usage restrictions are a common reason a valid code gets rejected. Read every populated field, even if you did not create the coupon yourself.

Minimum and maximum spend

A customer's final payable total is not necessarily the amount used to decide coupon eligibility. Shipping charges, tax settings, and other discounts can make the displayed order total a misleading comparison.

Check the current WooCommerce documentation for how minimum and maximum spend are calculated with your tax settings. Reproduce the cart just below, at, and above the threshold rather than guessing from the final checkout total.

If your promotion requires a qualifying merchandise purchase, explain that clearly in the offer. Customers should not have to discover the threshold rules through repeated checkout errors.

Included and excluded products

Review product and category restrictions, including exclusions. A coupon can be valid for one item in a mixed cart while leaving another item at full price.

Variable products deserve a separate check. Confirm whether the restriction targets the parent product or a specific variation, then test the exact size, colour, or other option the customer selected.

Sale items and coupon combinations

The option to exclude sale items can prevent a discount from applying to products already on sale. Depending on the discount type and cart contents, the coupon may discount only eligible items or be rejected.

Also inspect the Individual use only setting. If a coupon cannot be combined with another coupon, an existing code may explain the rejection.

Automatic discount extensions can introduce additional combination rules. Test without their promotion on a staging copy before deciding that WooCommerce's coupon calculation is wrong.

Check email restrictions and usage limits

An email-restricted coupon needs a qualifying email address. A guest may see different behaviour after entering their billing email, so test through that stage of checkout.

Check for typing errors in the allowed addresses and confirm that the promotion was sent to the address the customer is actually using. Do not broaden eligibility to everyone when the issue is a single incorrect address.

Next, review the coupon's usage limits:

  • Usage limit per coupon: the total number of permitted uses may already have been reached.
  • Usage limit per user: the customer may have used the offer previously.
  • Limit usage to a number of items: an item limit may explain why only part of a qualifying cart receives a discount.

For a per-user limit, test with an appropriate fresh account and email address. Guest usage can be checked using billing email, so opening a private browser window alone does not necessarily make someone a new coupon user.

If the recorded usage seems wrong, review associated orders and their statuses before changing anything. Do not reset usage counts or edit the database without understanding whether genuine orders have already consumed the offer.

Troubleshoot free shipping separately

A coupon that discounts products does not automatically remove shipping charges. For a free-shipping coupon, the coupon must allow free shipping and the relevant shipping zone must have a free-shipping method configured with suitable requirements.

Test with a complete Canadian delivery address, including province and postal code. A customer in one shipping zone may qualify while someone in another does not.

If the shipping method requires both a coupon and a minimum order amount, satisfying only one condition will not be enough. Check any setting that controls whether the minimum is assessed before or after coupon discounts.

A free-shipping option may also appear without being selected automatically. If shipping remains the problem, see How to Fix WooCommerce Shipping Rates Not Showing at Checkout.

Understand Canadian taxes and unexpected totals

A working coupon does not always reduce the final total by the amount a customer expects. Eligible products, shipping, and GST/HST or applicable provincial taxes all contribute to the calculation.

WooCommerce normally applies standard product coupons before calculating tax on the discounted products. A percentage discount on eligible merchandise therefore should not be checked simply by taking that percentage off the entire order total, including shipping.

Review the product subtotal, discount line, shipping, and tax lines separately. If you use tax-inclusive prices, mixed tax classes, or a multi-currency extension, include those settings in your test.

Do not change tax rates to make a coupon total look right. Confirm the intended tax treatment with your accountant, particularly for manufacturer coupons, gift certificates, or promotions handled by extensions.

Investigate caching when results are inconsistent

If the same eligible cart sometimes accepts a coupon and sometimes does not, caching or session handling may be involved. A stale page can display an old total even when the underlying cart has changed.

Ask your host or developer to verify that cart, checkout, and account pages are excluded from full-page caching. They should also check that CDN rules respect WooCommerce sessions and that checkout requests reach the store correctly.

Clear the relevant caches after correcting their configuration, then retest in a fresh session. Repeatedly purging everything without fixing an incorrect cache rule only provides temporary relief.

Avoid clearing all customer sessions on a live store as an early troubleshooting step. That can disrupt active carts and inconvenience shoppers who were not experiencing the problem.

Test plugin and theme conflicts safely

If the coupon settings are correct, look at what changed before the problem began. Discount extensions, currency tools, checkout editors, caching plugins, and custom snippets can all affect coupon behaviour.

Use a current staging copy and take a backup before changing software. Keep staging private and prevent it from sending customer emails or taking live payments; WooCommerce Staging: Why You Need a Test Site explains why a separate testing environment matters.

  1. Reproduce the failure on staging before changing anything.
  2. Disable one suspected extension or custom snippet at a time, keeping WooCommerce active.
  3. Retest the same cart and customer conditions after each change.
  4. If necessary, test with a compatible default theme to isolate theme customizations.
  5. Check the suspected product's official documentation for compatibility requirements and current fixes.

A newly created, simple test coupon can help distinguish a problem with one offer from a broader checkout failure. Keep it on staging so an unrestricted troubleshooting code cannot be used by real shoppers.

If clicking Apply does nothing, a developer can inspect browser errors and failed network requests. Review WooCommerce logs around the failure time as well, but keep customer details, session information, and credentials out of public support posts.

Do not update everything at once or replace checkout code during a busy promotion. You need to know which change resolved the failure and whether it introduced another problem.

Verify the fix before restarting the promotion

An accepted code is only the first check. Confirm that the discount stays correct when a customer changes quantities, removes an eligible item, or updates their shipping address.

  • Test an eligible cart and a cart that should be rejected.
  • Check guest and signed-in checkout where relevant.
  • Test sale items, excluded products, and another coupon.
  • Verify shipping options, taxes, and the final payable amount.
  • Complete a test order using a suitable staging payment method or the gateway's documented sandbox mode.
  • Check that the saved order records the correct coupon and totals.

Use How to Test Your WooCommerce Checkout Flow for the wider purchase checks. Move only the required fix to production, avoiding a full staging database replacement that could overwrite newer orders.

When to ask for help

Get help when a coupon fails despite matching restrictions, the problem affects several offers, or fixing it requires changing checkout code. Send the exact error, affected products, recent changes, and a screenshot with personal information removed through a private support ticket or email.

Ambrite's Growth Plan includes a WooCommerce health check covering plugins and payments. Complete adds updates tested on staging and cart and checkout testing after major updates, as described on the WordPress maintenance plans page.

Keep the promotion's intended rules in that support request too. A useful fix restores the discount you meant to offer while preserving product exclusions, spending requirements, and usage limits.

This article was written with the help of AI and reviewed by Ambrite. Pricing, features, and technical details may change, so always verify with official sources before making decisions.

Was this article useful?

Related Articles

How to Set Up Moneris Payment Processing on Your Canadian WooCommerce Store
Setting up Moneris on your WooCommerce store feels like wrestling with government paperwork,...
How to Add Canada Post Shipping Rates to Your WooCommerce Store
Running a Canadian e-commerce store means dealing with Canada Post shipping rates, and if...
How to Speed Up a Slow WooCommerce Store
Your WooCommerce store is hemorrhaging money. Every second it takes to load costs you...
Backing Up Your WooCommerce Store Properly
Your WooCommerce store crashed yesterday. The database is corrupted. Your last backup? Three...
When to Update WooCommerce (and When to Wait)
Your WooCommerce store just notified you about a new update. Should you click that update...