This is a Cart based Discount rule to consider the Number of individual products are in Cart as a Condition to apply discounts.

Each individual products are considered as a line item in cart. However, when you have variable products, each variable will be considered as a separate product as per woo-commerce.

Let us see, how to set up discounts based on the line items in cart:

Example Scenarios:

  1. 10% discount when cart has more than 4 different products.
  2. 50$ discount when cart has 5 different products from Category A, B or C

Set up:

10% discount when cart has more than 4 different products.

Add New rule.

In General tab, you can provide a name to the discount rule and a description which is optional.

Conditions tab:

Choose Number of line items in cart atleast. This line items are individual product number and which will not take the quantities purchased as a condition to apply the discount.

Also, you can also restrict the discount within a range of the products. Like by selecting the other condition "Number of line item less than" so that discount will stop after the number of items crossed the set up limit.

Like the below screen:

Discount tab:

You can choose it as per your discount scenario -> A Fixed Price discount or percentage or a Free product or Free shipping

In this example, we are using percentage discount.

Display of discount in cart:

Example 2:

50$ discount when cart has 5 different products from Category A, B or C:

The discount applies only when 5 different products in cart only from the specified Categories A,B or C (any combination)

Similarly, you can use cart based rules on different conditions.

Quick Links:

Cart based rules (Conditions)

Free product rules

Did this answer your question?