View Product Page

Cart rules

This specific type of discount allows you to create discount rules based on the cart contents.

To create a new rule, go to YITH > Dynamic Pricing > “Dynamic Rules dynamic rules page and click on the Add rule” button.

cart discount

Let’s see how to configure it.

cart rule first step

Active rule: Enable or disable the rule by using the toggle.

Priority: set the priority to assign to this rule. Priority is important to overwrite rules (1 is the highest priority).

If the conditions are met in the cart, the rules will apply based on their priority, so for example, you can apply a 50% (rule with priority 1) and an additional 20% (rule with priority 2) on the same products.

Note: there are two distinct priority lists for rules Price Rules and Cart Discounts. Even though they are listed in a unique list, they have a separate priority, because one applies to the cart, others at the product level.

You can also arrange the priority by dragging and dropping the rules from the rules list:

drag and drop

Schedule the rule

Schedule rule: choose whether to schedule the rule or activate/deactivate it manually

  • Enable the rule now and end it manually
  • Schedule a start and end time 

Schedule settings in cart rules

With other coupons?

Disable with coupons

Disable when a coupon has been applied: the rule will not apply if the customer is using another coupon in the cart.

Free shipping

Free shipping

Allow free shipping: enable to offer ‘free shipping’ when this rule applies.

For this to work, make sure you have set up a free-shipping method in WooCommerce > Settings > Shipping. After creating a shipping method, set ‘Free shipping requires…’ to ‘A valid free shipping coupon’.

Free shipping in WooCommerce

For more information on setting up free shipping check the WooCommerce Documentation.

For the discount conditions, please, refer to the next page.

Discount conditions

Now you can set up the conditions for the rule to apply, and you can add more than one for the same rule. Let’s see which options are available.

Cart rule conditions

Click on Add condition and give it a name.

Then, you can set up the rule conditions, based on one of the following options:

Condition options

  • Users
  • Number of orders
  • Total amount spent
  • Products
  • Cart items
  • Cart subtotal


Cart rule based on user

Here you can choose whether the rule will apply to all users or to specific users or user roles.

Number of orders

Cart rule based on number of orders

Here you can set up a minimum or maximum number of orders.

For example, if you want to offer the discount only to returning customers, you can set up a minimum number of orders of 1 and leave the maximum empty, so it applies to any returning customer.

Total amount spent

Cart rule based on total amount spent

Here you can set up a minimum amount spent so far by the customer. Please, consider the condition will calculate the total amount spent so far by the customer, regardless of the number of orders placed.

You can both set up a minimum and maximum past expense.


Condition type: you will be able to use one of the following options.

1. Require specific products in cart to apply the discount

The discount will be applied only if the user has added the selected product(s) to the cart.

Cart rule based on products

Apply the discount if: choose to apply the discount when at least one of the specified products is in the cart or only when all products are in the cart

  • At least one selected product is in the cart
  • All selected products are in the cart

You will be able to set specific products, categories or tags.
Additionally, you will also be able to enable the cart rule if a specific vendor (if using YITH Multi Vendor) or brand (if using YITH Brands Add-on) is in the cart.

Additional filters by category and tag for cart discounts

2. Exclude specific products from cart condition validation

Exclude products from the rule validation

Excluded products will not be considered for achieving the conditions.

Exclude ‘on-sale products’: enable to make sure that on-sale products will not count for the rule validation.

Please, remember you can combine more than one condition for the same rule. So, for example, you can create a condition that requires a minimum of 3 products in cart, but exclude accessories and on-sale products from this count: if the cart contains 5 products, but one of them is an accessory and the other one is on sale, the rule will NOT apply.

You will be able to set specific products, categories or tags.
Additionally, you will also be able to enable the cart rule if a specific vendor (if using YITH Multi Vendor) or brand (if using YITH Brands Add-on) is in the cart.

Exclude categories and tags from cart rule validation

3. Disable discount when there is a specific product in cart

Disable cart discount

The discount will be not applied if the user has added specific product(s) to the cart.

You will be able to set specific products, categories or tags.
Additionally, you will also be able to enable the cart rule if a specific vendor (if using YITH Multi Vendor) or brand (if using YITH Brands Add-on) is in the cart.

Cart items

Cart items allows you to apply the rule based on the number of products in the cart.

You have two options to check the item quantity:

  • Product items – units of the same product in the cart. Please, note that this condition must be met for every product in the cart.
  • Cart items – total of products in the cart

And then you can set a minimum and maximum quantity for the rule to apply.

Cart items with quantity check per product

For example, with the above settings, the rule applies only if the customer adds a minimum of 3 items for each of the products in cart, but it will not apply if there is even 1 product with a lower quantity.

Product unit - discount applied


Cart subtotal

Cart subtotal

With this condition, you can make sure that the rule only applies if the subtotal falls within the price range you set up. You can set a minimum or maximum value or both.

Discount type and amount

Finally, you can set up the type of discount and the amount that will apply if all the conditions are met. Type of discount

You can choose three types of discounts:

  • percentage discount
  • price discount
  • fixed price: the cart total will be the amount that you set here.

Please consider that when you choose a fixed price, the rule cannot be combined with other discount rules since the cart total must be equal to the amount you set up here.

Cart notice

You can decide to show a special notice on the cart page, to inform the customer about the possible discount rules that are / can be applied.

Important: This option only shows up when you select “Cart subtotal” as a condition.

subtotal rule

After selecting and saving the “Subtotal” option, the following fields appear.

Cart notice

  • Show a notice in the cart: decide to show a message on the cart page.
  • Cart notice: write the message to be shown using the following placeholders:
    • %remaining_amount% to show the remaining amount
    • %amount_discount% to show the discount.
  • Cart notice background color: You can give a color to the background of the message.

cart notice example