So Why Cart Based Rules ?

When the discounts are to be calculated in cart by checking many perspectives (Conditions) you can use cart based discount rules.
As you see, many store owners wish to configure a discount scenario only in the cart.
You can apply three types of discount based on on several conditions.

  • Price discount
  • Percentage discount
  • Free Shipping
  • Free Product

The rules defined here will be applied in cart section (i.e.) it allows you to apply discounts only inspecting the cart items a user added to it.

Let's see, what are the possible conditions available to set up a Cart based rule:

Subtotal at least - A discount condition that applies the discount when the order subtotal is greater than or equal to the value given here.
Subtotal less than -
A discount condition that applies the discount when the order subtotal is less than or equal to the value given here. (Examples)
Number of line items in cart (Not quantity) at least -
A discount rule that helps to apply the discount based on the number of items available in the cart. If you have the rule using this condition, then the discount coupon applies only if cart contains items greater than or equal to the value given here.
Number of line items in cart (Not quantity) less than -
It checks for the number of item in the cart is less than or equal to the value given here.
Total number of quantities in the cart at least -
It checks for the total quantities available in the cart. That is, if cart contains 2 quantities from product A and 1 quantity from product B then the total sum of quantity is 3. So if you have entered 5 here, then the discount will applied only if cart contains quantity of 5 or more.
Total number of quantities in the cart less than -
It is similar to the above condition but the only difference is it will apply the discount only if cart contains quantity less than or equal to the value entered here. (Examples)
Categories in cart - Using this condition, you could create a cart based discount rule for specific category. (Examples)
User in list -
It is used to create a discount rule for specific customers or users.
User role in list -
Applying discount to the specific user role will be possible by  using this condition. You can be able to have discount for User Roles in both price rule and cart rules (Some Examples)
Shipping country in list -
Discount for the customers coming from specific country will be possible with this condition.
Email ends with -
It helps to offer the discount for the users whose email is ended with .com, .org, .in, etc.
Billing city -
Discount for specific location will be possible with this condition.

Coupon code - You can be able to activate discount rules with the help of coupon created from woo commerce (How to activate discount rules using coupon)

Free Shipping -With Cart based rules you can also enable Free Shipping as a discount to the User.
(Free Shipping Examples here)

Free Product: using cart based conditions, customers can enjoy a Free gift which will be automatically added to the cart (Free Product Examples)

1.) Provide cart discount in subtotal basis:


1. Order

Here you have to give the priority for the rules created inside Cart discount rules. That is, choose which rule is going to implement first. For example, if you are having multiple rules, those rules will be applied based on the priority you have given.

Note: More than one rule should not have same priority. It should be unique.

2. Rule Name

Enter the unique name for the rule.

3. Rule Description

Enter two line description about the rule.

4. Validity

Choose the dates between which the discount is valid.


1. Type

Choose the condition type for cart discount method. You can apply discount on following types of conditions sub-total basis, cart item count, Quantity sum, Customer Details.

2. Value

Enter the value for the condition in number. For example, 300. So If you select the type Subtotal less than and entered the value 300. The discount rule applies when condition matches Subtotal less than 300. (More Examples on Sub- Totals)


Choose the discount type and enter the discount value. For example, 5% or $5

Similarly you can able to create combination of rules by adding the conditions, the added conditions will work in "AND" condition so the discounts will work only when all the conditions are satisfied by the Cart.

Few Example Scenarios with Cart Based Rules:

2.) Quantity based and cart line item based discounts:

To provide a discount when the Cart contains specific quantities of products and you can set a condition for Line items in the cart.

This condition will check the number of quantities as well as the line items in the cart.
Then, a 10% discount should be applied in the cart page.

You can also provide a price or Free shipping as a discount.
Here is how the discount looks in cart:

The 10% discount applied in cart when the cart has 5 quantities and 3 line items.

Cart Rule Settings:

Here are few settings which you need to check for when you have a cart based rule.

You can change the Coupon name which you wanted to display in the cart page.

If you have a Free shipping Discount rule(Free shipping rules), you need to enable the free shipping from the settings as well.


Direct link to see the examples here

Simple Cart Based Rule:

Quick Links:

Enable Free Shipping Cart based Rule examples

Offer Free Product automatically added to cart

Quantity Based Cart discount Rules

Still unclear ?

Please submit a support request

We are always happy to assist you :)

Did this answer your question?