Cart rules

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

Cart rule first settings

To create one, just go to YITH > Dynamic Pricing > Cart Rules, click on Add new, give it a name, enable the Active option to activate the rule.

There is no limit to the number of rules you can create, so please, make sure you set a priority.

Priority: 1 is the highest priority.
You can also arrange the priority by dragging and dropping the rules from the rules list:

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

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

Cart rules arrange priority

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 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

Users

Cart rule based on user

Here you can choose whether the rule will apply to all users or to specific user 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 returing customers, you can set up a minimum number of orders of 1 and leave 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.

Products

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 product 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) are 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) are 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) are in the cart.

Cart items

Cart items allows you to apply the rule based on the number of products in 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 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 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 discount:

  • 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 has to be equal to the amount you set up here.