How to create a rule for cart discount

To apply a discount on the cart, you must create at least one Cart discount rule.

Go to YITH Plugins > Dynamic Pricing and Discounts > Cart Discount, click on Add new, give a name to the new rule and proceed with the configuration of the other parameters.

New cart discount rule

There is no limit to the number of rules you can create.

If the cart satisfies the conditions of different discount rules, they will apply according to the priority you specify in the rule settings next to Priority. In the above image, for example, the rule has a 2 priority.

This means that on the total cart amount, first the rule with priority 1 will be applied, and only after that, an additional 20% off admin carts will be applied.

How to set discount rules for cart discount

Set one or more purchase conditions for the discount you want to apply. The condition must be chosen from “Role” and must be followed by a value.
Discounts conditions that can be selected are divided in 4 main categories. Let’s analyze them singularly.

Customers

  • Users in list: discount reserved only to users belonging to a specific list (enter customers in “Value”).
  • Exclude users in list: discount applied to all customers except for those listed in the field “Value”.
  • Roles in list: offer reserved to all users that have the same role in the site as specified in field “Value”.
  • Roles not in list: exclude registered users with a role as specified in the field “Value” from the offer.
  • Minimum number of orders required: users must have a number of orders in their history that corresponds at least the number specified in this option.
  • Maximum number of orders required: users cannot have more orders in their history than the number specified in this option.
  • Minimum past expense required: the discount is reserved only for users that have already purchased items at least for the amount specified in the field “Value”.
  • Maximum past expense required: the discount is reserved only for users that haven’t exceeded the total expense specified in the field “Value”.

 

Roles in list

Products

  • At least one selected product: discount applied only if one the selected products has been added to the cart.
  • All selected products in cart: discount applied only if all selected products have been added to the cart.
  • Products not selected: discount applied only if the cart contains all products except for the selected ones.
  • At least a selected category: discount applied only if at least one product belonging to one of the selected categories has been added to the cart.
  • All selected categories in cart: discount applied only if at least one product from each of the selected categories has been added to the cart.
  • Categories not selected: discount applied only if no products belonging to the selected category has been added to the cart.
  • At least a selected tag: discount applied only if at least one product with one of the selected tags has been added to the cart.
  • All selected tags in cart: discount applied only if at least one product from each of the selected tags has been added to the cart.
  • Tags not selected: discount applied only if no products with the selected tag has been added to the cart.

Product options

Cart items

  • Minimum quantity of product items: discount applied only if the number of items of the specified product is equal to or greater than the specified value.
  • Maximum quantity of product items: discount applied only if the number of items of the specified product is less than the specified value.
  • Minimum quantity of cart items: discount applied only if the total number of items added to the cart is equal to or greater than the specified value.
  • Maximum quantity of cart items: discount applied only if the total number of items added to the cart is less than the specified value.

 

Cart items

Cart subtotals

  • Minimum subtotal: discount applied only if the cart total amount is equal to or greater than the specified values.
  • Maximum subtotal: discount applied only if the cart total amount is below the specified values.

 

Cart subtotals

Set discount type for cart discount

The last step when creating a “Cart Discount” type rule is to choose the kind of discount to apply to the cart from:

  • percentage discount: the discount amount is calculated in percentage in relation to the cart total
  • price discount: discount calculated in fixed amount relating to the cart total 
  • fixed price: through this discount type, the cart will acquire the exact amount you specified if the rule is applied.

The fixed price discount type can’t be combined with other discount rules since the cart total will always be the same as the one provided by the “Fixed price” discount rule.

Coupon generation

If the discount rule on cart is used, the system generates a coupon for the same amount of the discount to apply.
Assumed we have created a rule that applies a 20% discount for amounts higher than 200£ on cart, we will have a situation like this.

Minimum subtotal

Coupon applied

To change the coupon name that will be generated, go to the tab Settings in plugin options panel and add your text in the field Coupon Label.

Coupon

Information about the coupon used will be available also in order detail page.

Product detail page