1. Home
  2. Knowledge Base
  3. Advanced Coupons
  4. Auto Apply Coupon
  5. How to set up auto-apply coupons in WooCommerce

How to set up auto-apply coupons in WooCommerce

Asking customers to copy a coupon code into the checkout adds friction. Auto-apply coupons skip that step: when the cart meets the coupon’s rules, WooCommerce applies the discount automatically. This article walks through enabling auto-apply on a specific coupon, what conditions block auto-apply, how priority sorting works when multiple coupons could apply, and how to rebuild the auto-apply cache when something looks stuck.

Prerequisites

  • Advanced Coupons Premium installed and activated (the Auto Apply module ships with Premium only. The free plugin doesn’t include it).
  • The Auto Apply module enabled under Coupons → Settings → Modules (on by default; if you’ve disabled it, re-enable it before continuing).
  • At least one WooCommerce coupon already created. If you’re starting fresh, create a coupon under Coupons → Add New first.

Step 1: Open the coupon you want to auto-apply

  1. Go to Coupons → All Coupons in your WordPress admin.
  2. Click the coupon code to open the edit screen.

Step 2: Enable auto-apply on the coupon

On the right-hand side of the coupon edit screen, find the Auto Apply Coupon metabox.

  1. Tick Enable auto apply for this coupon.
  2. Click Update at the top of the coupon edit screen.
WooCommerce coupon edit screen with the Auto Apply Coupon metabox in the side column and

The next time a shopper’s cart matches this coupon’s rules, the discount is applied automatically with no code entry.

Settings that block auto-apply

The Auto Apply Coupon metabox shows a note: “coupon cannot be auto applied when ‘Allowed emails’, ‘Usage limit per coupon’, ‘Usage limit per user’ and/or ‘Virtual coupons’ option is set.” If any of these are configured on your coupon, auto-apply will be skipped:

  • Allowed emails: limits the coupon to specific email addresses (under Usage restriction).
  • Usage limit per coupon: caps total uses (under Usage limits).
  • Usage limit per user: caps uses per customer.
  • Virtual coupons: Advanced Coupons’ bulk-coupon feature (each shopper gets a unique generated code).

These limits all rely on identifying the specific customer (or counting against a finite pool), which doesn’t make sense in an “applies automatically to anyone whose cart matches” scenario. To auto-apply a coupon that needs usage limits, consider using the One Click Apply feature instead (it surfaces an apply notice the customer chooses to accept).

Combining auto-apply with Cart Conditions

Auto-apply works best with Advanced Coupons’ Cart Conditions feature. Without conditions, an auto-apply coupon applies to every cart that meets the standard WooCommerce usage restrictions, which is rarely what you want.

Common pairings:

  • Cart subtotal ≥ $100 → auto-apply a 10% off coupon (threshold incentives).
  • Cart contains products from Category X → auto-apply free shipping (category-specific shipping promos).
  • Customer has the wholesale role → auto-apply a wholesale-only discount.
  • Cart contains 3+ items of Product A → auto-apply BOGO logic.

To set conditions: on the coupon edit screen, open the Cart Conditions tab and add the rules the cart must satisfy. The coupon is auto-applied only when both the conditions match AND the standard WooCommerce coupon validation passes.

Setting priority when multiple coupons could apply

If more than one of your auto-apply coupons could apply to a cart, Advanced Coupons uses your Sort Coupons in Cart priority order to decide which runs first.

  1. Go to Coupons → Settings → Sort Coupons in Cart.
  2. Drag coupons into your preferred priority order, or set numerical priority values per coupon.
  3. Save changes.

This ordering is also used when applying coupons manually. Keeping a consistent priority across both manual and auto-apply flows is recommended.

Rebuilding the auto-apply cache

Advanced Coupons keeps an internal cache of all auto-apply coupons so it doesn’t have to scan every coupon on every cart calculation. When you change a coupon’s rules or enable auto-apply on a coupon, the cache normally updates automatically. If it doesn’t (rare, but possible after database imports, plugin updates, or external coupon changes), rebuild the cache manually:

  1. Go to Coupons → Help.
  2. Scroll to the Utilities section.
  3. Under Rebuild/Clear Auto Apply Coupons Cache, click Rebuild to re-scan all coupons and refresh the cache, or Clear to wipe it entirely (the cache rebuilds on the next cart calculation).
Coupons → Help → Utilities section with the Rebuild/Clear Auto Apply Coupons Cache buttons

Troubleshooting

The Auto Apply Coupon metabox is missing on the coupon edit screen

Confirm the Auto Apply module is enabled under Coupons → Settings → Modules. The metabox only renders when the module is on. If you’re using Advanced Coupons Free, note that the module is Premium-only. Install Advanced Coupons Premium to unlock it.

I ticked the checkbox but the coupon isn’t auto-applying

Walk through the blockers list above. Check whether any of the four blocking settings are configured on this coupon (Allowed emails, Usage limit per coupon, Usage limit per user, Virtual coupons). If none are set, also check the coupon’s Cart Conditions, Usage restrictions (minimum spend, allowed products/categories, exclude sale items), and the customer’s eligibility (some restrictions apply per-user).

If everything looks valid, rebuild the auto-apply cache from Coupons → Help → Utilities and test the cart again in a private browser window.

A BOGO auto-apply coupon shows the wrong price with WooPayments multicurrency

This was a known issue with multicurrency stores: auto-applied BOGO coupons could show a mismatched price between the cart total and the WooPayments multicurrency display. Fixed in Advanced Coupons Premium v4.0.7. Update to the latest version under Plugins → Installed Plugins and re-test the affected cart.

Two auto-apply coupons should both apply, but only one does

WooCommerce respects each coupon’s Individual use only setting. If the first coupon to apply has that ticked, no further coupons (including other auto-apply ones) can apply on the same cart. Untick Individual use only on both coupons if you want them to stack, or use Advanced Coupons’ Allowed coupons override feature on the Individual-use coupon to whitelist the other.

Auto-apply works on the cart page but not at checkout

Make sure your theme uses the standard WooCommerce cart and checkout templates (or the Cart and Checkout blocks). Themes that heavily customise the cart layout can sometimes bypass the hooks Advanced Coupons uses. Test on a default WooCommerce-supported theme (e.g. Storefront) to confirm the issue is theme-related.

Frequently asked questions

Can I auto-apply a coupon to logged-out (guest) shoppers?

Yes. As long as none of the blocking settings (Allowed emails, Usage limit per user) are on, auto-apply works for both logged-in customers and guests. The coupon’s standard WooCommerce restrictions (minimum spend, allowed products) still apply.

Does auto-apply work with the WooCommerce Cart and Checkout Blocks?

Yes. Advanced Coupons supports the block-based cart and checkout. Auto-apply runs during the same calculation phase whether you’re using classic templates or the new blocks.

Can I hide an auto-applied coupon from the customer’s cart view?

The coupon line item is part of WooCommerce’s standard cart rendering, so it’s visible by default. If you want to hide the line and just show the discount in the totals, that’s a theme-template customisation. See How to hide auto-apply coupons until cart rules are met for a related setup pattern.

What’s the difference between Auto Apply and One Click Apply?

Auto Apply runs silently. The coupon applies the moment the cart qualifies. One Click Apply shows a notice on the cart saying “you can apply coupon X, click here” and the customer has to accept it. Use Auto Apply for friction-free discounts (e.g. “Save 10% over $100”). Use One Click Apply when usage limits matter (since One Click Apply respects them) or when you want the customer to consciously accept the discount. See The difference between One-Click Apply Notifications and Auto Apply Coupons.

Need help?

If you have a question or run into any issues, we’re here to help.

Was this article helpful?

Related Articles

Complete Your Purchase