LTD is back · Limited time only

How to Set Up WooCommerce Coupon Auto-Apply in WordPress

Last updated on August 7, 2026

Key Takeaways

• Auto-apply coupons when their WooCommerce usage restrictions are satisfied

• Per-coupon auto-apply toggle lives in the coupon editor’s **Auto-Apply Settings**

• Prioritize the highest-value coupon when several are eligible

• Cap how many coupons auto-apply per cart (default 3)

• Reapplies coupons automatically as the cart changes during the session

What Is WooCommerce Coupon Auto-Apply?

By default, WooCommerce only applies a discount when a customer types a coupon code at checkout. Customers who qualify for a discount but do not have (or cannot find) the code simply miss out. The Classic Monks Enable Auto-Apply Coupons feature closes that gap: when a coupon is enabled for auto-apply and the customer’s cart meets its conditions, the discount is added automatically.

Auto-apply is powered by native WooCommerce coupon restrictions (minimum spend, products, categories) plus an optional user-role condition. When those conditions are met during cart calculation, the coupon applies on its own. The behavior is the same as a manually entered code, except the customer does nothing.

Why You Need It

Auto-applied discounts remove a real point of friction:

  • No code lookup. Customers rarely search for a code when they do not already have one. Auto-apply gives them the discount anyway.
  • Higher conversion. Seeing a discount already applied at checkout removes the “was I supposed to get a discount?” doubt.
  • Fewer abandoned carts. A discount that appears automatically is more likely to close the sale than one the shopper has to remember to enter.
  • Targeted by conditions. Because it honors native usage restrictions, you can scope auto-apply deals to specific spend levels, products, or categories.

How to Set Up WooCommerce Coupon Auto-Apply in WordPress

Step 1: Enable the Feature

  1. Open Classic Monks in your WordPress admin sidebar.
  2. Open the WooCommerce tab.
  3. Open the Coupons subtab.
  4. Toggle on Enable Auto-Apply Coupons. The nested options expand below the toggle.

WooCommerce auto-apply coupon settings

Step 2: Configure Global Options

  • Maximum Auto-Apply Coupons Per Cart (default 3, range 1-10) caps how many coupons can be auto-applied to a single cart. Set it to 1 if you only ever want the single best deal applied.
  • Prioritize Highest Value Coupons (On by default) applies the highest-value eligible coupon first rather than a random one when several match.
  • Show Auto-Apply Notifications (On by default) displays a notice to the customer when a coupon is auto-applied.
  • Disable All Coupon Notices (Off by default) suppresses every coupon-related notice for a quieter checkout. Turn this on only if you want no coupon messaging at all.

Step 3: Enable Auto-Apply on a Coupon

  1. Go to WooCommerce > Coupons (or Marketing > Coupons) and open the coupon.
  2. In the Auto-Apply Settings section, turn on Auto-apply when WooCommerce restrictions are met.
  3. In the native Usage Restrictions tab of the coupon, set the conditions for the deal (minimum spend, products, categories). These restrictions determine when the coupon auto-applies.
  4. Optionally set a user-role condition in the Auto-Apply Settings section, then save the coupon.

Step 4: Save Changes and Test

Click Save Changes in the Classic Monks settings. Build a cart that satisfies the coupon’s conditions and confirm the discount is applied automatically, with the notification shown (if enabled).

Configuration Options

Option Behavior Default
Enable Auto-Apply Coupons Master toggle for the feature. Off
Maximum Auto-Apply Coupons Per Cart Max number of coupons auto-applied to one cart (1-10). 3
Prioritize Highest Value Coupons Apply the highest-value eligible coupon first when several match. On
Show Auto-Apply Notifications Show a notice when a coupon is auto-applied. On
Disable All Coupon Notices Suppress all coupon notices for a quieter experience. Off

Per-coupon, the Auto-Apply Settings section controls whether that coupon auto-applies and any optional user-role condition. The native Usage Restrictions tab defines the cart conditions.

What Gets Affected

  • Cart calculation: eligible auto-apply coupons are added automatically during cart updates
  • Customer notifications: an “auto-applied” notice appears when the notification option is on
  • The order total: reflects the auto-applied discount exactly as a manual code would
  • Coupon usage tracking: auto-applied coupons still count toward their usage limits

What Does NOT Get Affected

  • Manual coupon entry: customers can still type a code alongside auto-applied ones (subject to your stacking rules)
  • Coupon eligibility rules: auto-apply honors the coupon’s existing restrictions; it does not bypass them
  • Coupon codes: the codes themselves are unchanged and still work as codes
  • Products and prices: auto-apply only adds a discount; it does not alter product data

Advanced Options (Developers)

The feature registers its hooks in functions/woocommerce/coupons/auto-apply-coupons.php:

add_action( 'woocommerce_cart_loaded_from_session', 'cm_auto_apply_eligible_coupons', 25 );
add_action( 'woocommerce_add_to_cart', 'cm_auto_apply_eligible_coupons', 25 );
add_action( 'woocommerce_cart_item_removed', 'cm_auto_apply_eligible_coupons', 25 );
add_action( 'woocommerce_cart_updated', 'cm_auto_apply_eligible_coupons', 25 );

add_action( 'add_meta_boxes', 'cm_add_auto_apply_coupon_meta_box' );
add_action( 'save_post_shop_coupon', 'cm_save_auto_apply_coupon_meta_box' );
add_action( 'save_post_shop_coupon', 'cm_flush_auto_apply_coupon_cache' );
  • woocommerce_cart_loaded_from_session, woocommerce_add_to_cart, woocommerce_cart_item_removed, and woocommerce_cart_updated (all priority 25) call cm_auto_apply_eligible_coupons(), so eligible coupons are (re)applied whenever the cart changes during a session.
  • add_meta_boxes registers the Auto-Apply Settings meta box; save_post_shop_coupon saves it and flushes the auto-apply cache on coupon save. Coupon cache is also flushed on deleted_post.
  • woocommerce_removed_coupon and woocommerce_cart_emptied track when a user removes or clears a coupon, so a deliberately removed code is not reapplied on the next cart update.

Common Use Cases

Welcome and first-order deals. Auto-apply a first-purchase discount so new customers immediately get their deal at checkout without hunting for a code, lifting first-order conversion.

Spend-threshold incentives. Create a “spend $75, get $10 off” coupon restricted to that minimum and let it auto-apply. Customers who cross the threshold see the reward appear, encouraging them to add one more item to qualify.

Category and product promotions. Auto-apply a discount on a specific category or product line only when those items are in the cart, using native usage restrictions to scope the offer.

Free-shipping nudges. Auto-apply a free-shipping coupon when a minimum spend is met, removing the biggest common checkout objection automatically.

Tiered best-deal logic. Leave Prioritize Highest Value Coupons on so when multiple conditions are met, the customer gets the strongest applicable offer rather than the first one matched.

Troubleshooting

Cause: The master toggle is off, the coupon’s Auto-Apply Settings toggle is off, the cart does not meet the coupon’s usage restrictions, or the coupon is expired/limit-reached.
Fix: Confirm both toggles are on. Verify the cart meets the coupon’s native restrictions (minimum spend, products, categories). Confirm the coupon has remaining usage and is within its date range.

Cause: Several coupons are eligible and Maximum Auto-Apply Coupons Per Cart allows more than one.
Fix: Lower Maximum Auto-Apply Coupons Per Cart to 1, or turn off Prioritize Highest Value Coupons and set the limit to 1 so only the best deal is kept.

Cause: Auto-apply re-runs on cart changes and re-adds any still-eligible coupon.
Fix: The feature tracks when a customer removes a coupon and avoids re-adding it in the same session. If it is reappearing, confirm the coupon removal was recorded (cart emptied or a fresh session started) and the coupon is still eligible.

Cause: The coupon is eligible and enabled for auto-apply, so it is applied by design.
Fix: Disable Auto-apply when WooCommerce restrictions are met on that coupon in its Auto-Apply Settings, or tighten its usage restrictions so the cart does not qualify.

Frequently Asked Questions

Yes. Auto-apply is a per-coupon setting in each coupon’s Auto-Apply Settings. Only the coupons you enable will auto-apply; all others require the customer to enter the code manually.

It uses the same native WooCommerce usage restrictions any coupon uses (minimum/maximum spend, specific products, product categories, excluding items), plus an optional user-role condition in the Auto-Apply Settings section.

No. Auto-apply adds eligible coupons during cart calculation. Manual codes still work, and both coexist subject to your stacking rules and the Maximum Auto-Apply Coupons Per Cart setting.

Yes. An auto-applied coupon is a real coupon application and counts against the coupon’s usage limit and per-customer limit, exactly like a manually entered code.

Yes. Auto-apply runs from the cart conditions and applies for guests as well as logged-in users, provided the coupon’s restrictions (including any role condition) are satisfied for that customer.

Sumit Your Ideas or Feature Requests

All submissions go through a manual review, so not every idea will be published. That said, the most upvoted ideas are given priority on our official roadmap.Please check if your idea already exists before submitting. If you find it, simply upvote it to help us prioritize it.