Count quantity by

How item quantity is counted in each rule

Once you have filtered those products qualified for the price rule, now it's time to define how many of them are required.

For example, if you require 3 items in list Album or Beanie products, the following Count quantity by options will affect the rule's eligibility.

Let's say we have Album as a single product (A), and Beanie as variable products (Beanie Green - BG, Beanie Red - BR).

You can select one of the count quantity options provided:

  • All together

  • Item quantity in each cart line

  • Each single product/variable products

All together

When you set Count quantity by "all together", it will take total of filtered products.

So, in the following screenshot, you will find a few cases in which it will qualify for "3 items" in cart:

  • 1A + 1BR + 1BG → quantity = 3

  • 1BG + 2BR → quantity = 3

  • 3BG → quantity = 3

Item quantity in each cart line

When you set Count quantity by "Item quantity in each cart line", it will take the quantity per cart line item.

So, in the following screenshot, you will find when it is not matched or matched.

  • 2BG + 2BR → quantity of each line = 2 → not match "3"

  • 3BG + 1BR → quantity of BG = 3 → match!

  • 3BG + 1BR + 3A → quantity of BG = 3 and quantity of A = 3; therefore it is matched 2 times and if you want to repeat the discount, this cart will enjoy the discount twice.

Each single product/variable products

When you set Count quantity by "Each single product/variable products", it will take the number of items that belong to a product, including single product and variable products.

Here are some cases where it is not matched or matched.

  • 2BR + 1A → quantity of B = 2 and quantity of A = 1 → not match "3"

  • 1BG + 2BR → quantity of B = 3 → match!

  • 2BG + 1BR + 3A → quantity of B = 3 and quantity of A = 3; therefore it is matched 2 times and if you set to repeat the discount, this cart will enjoy the discount twice.

Last updated