How To Check The Subtotal Before Applying A WooCommerce Coupon

check subtotal

If you’re running a coupon deal on your WooCommerce store you might have had the brilliant idea to restrict it to only when your customer is buying over a certain amount.

Examples of this would be:

  • Free shipping over $150
  • $10 off when you spend over $100
  • 15% off on any orders over $200

If you are new to WooCommerce or new to running a deal like this you might be wondering how the heck to do it, since standards coupons in WooCommerce don’t have this feature to check for the subtotal amount.

The best way is to use a tool called Advanced Coupons for WooCommerce. Advanced Coupons is a coupon extension plugin which adds extra features to your regular coupons interface.

Advanced Coupons Adds Additional Coupon Edit Options
Advanced Coupons Adds Additional Coupon Edit Options

When you install Advanced Coupons you’ll instantly notice all the extra features you get on your coupons screen when you edit a coupon. It’s with this extra power that you can run the deals mentioned about where you need to check the subtotal.

To do this you’ll need to use the feature called Cart Conditions.

Cart Conditions are a set of conditions that must be true before a coupon is allowed to be applied.

It works like a rules engine, so it can be very powerful.

In the following 3-minute video you’ll see just a snippet of what this can do by using the Cart Subtotal cart condition, but you can actually combine it with multiple other conditions to create more complex scenarios (eg. free shipping on orders over $150 but only for guests)

Step By Step How To Check For Subtotal Before Applying A WooCommerce Coupon

Here are the step by step instructions on how to check for the subtotal as your customer adds a coupon on your store.

#1. Create your coupon

As an example here, I have defined a coupon 20OFF150CART which gives $20 off as a fixed cart discount, but only if the customer has more than $150 in their shopping cart.

How To Check The Subtotal Before Applying A WooCommerce Coupon

#2. Add the Cart Conditions

  1. Go to the Cart Conditions tab
  2. Add a Condition Group
  3. Add a Condition and choose the Cart Subtotal condition
How To Check The Subtotal Before Applying A WooCommerce Coupon
Choose Cart Subtotal condition

Set up your condition to whatever you need. Here I have defined MORE THAN 150 as the condition I want to test for.

How To Check The Subtotal Before Applying A WooCommerce Coupon
Set your test conditions

Save the coupon and that is all you need to do configuration wise.

#3. Optional Extra Config

There is another couple of options you might like to consider to make your customer’s lives easier.

They are:

Read more about the difference between auto apply and one-click notifications here.

When you enable One-Click Apply Notifications, the system monitors the cart conditions and if they become true, it will show a WooCommerce notice to the customer on the cart with a single button. If they click the button, it applies the coupon.

How To Check The Subtotal Before Applying A WooCommerce Coupon
Shows a WooCommerce notice on the cart/checkout with a button to apply the coupon

The point of this is to make it simple for your customers to redeem the offer. You are just giving them a button to click, rather than having them type the code manually.

The other option is to Auto Apply the coupon.

This works in a similar manner, it monitors the cart conditions and when they become true, it auto applies the coupon.

If the offer becomes invalid it unapplies itself.

Auto apply is great when you want to make it completely handsfree and you want it to apply for all customers that are eligible whether they enter the coupon or not.

Wrapping Up

To conclude, you can create coupons in WooCommerce that check for a minimum subtotal amount prior to being allowed to use that coupon.

To do so you’ll need a copy of Advanced Coupons.

There are also extra options for making it easier on your customer by having your coupon auto apply or apply with the click of a button.

Leave a Reply

Your email address will not be published. Required fields are marked *