YayPricing-WooCommerce Dynamic Pricing & Discounts
  • Getting Started
    • Introduction
    • How to Install
    • Enter License Key
    • System Requirements
    • How To Update YayPricing
    • Uninstall and Delete
  • Features
    • Product Pricing
      • Simple Adjustment
      • Bulk Pricing
      • Product Bundle
      • BOGO (same product)
      • Buy X Get Y
        • Change free gifts
      • Tiered Pricing
      • Product fee
    • Cart Discounts
    • Checkout Fees
      • Reduce Shipping Fee
      • Add Custom Fee
      • Add Custom Fee based on Shipping Fee
    • Exclusions
      • Product Exclusions
      • Coupon Exclusions
    • Product Collections
    • Shortcodes
    • Schedule
    • Usage Limit
    • Export/Import
      • Import Bulk Pricing Ranges
  • Rule Settings
    • Filtered products
    • Count quantity by
    • Conditions
      • Single condition
      • Combined condition
    • Pricing types
  • Global Settings
    • General
    • How the rules are applied
    • Product sale display
    • Pricing table
    • Countdown timer
    • Encourage notice
    • Shortcode
    • Import/Export
  • Use Cases
    • Buy X get Y
    • Sale 30% off from the third item
    • Order discount
    • Free shipping
    • First time order discount
    • Category discount
    • Free gift coupon
    • Cheapest cart item
    • Bundle discount
    • 3 for $100
  • Reports
  • Compatibility
    • WooCommerce Brands
    • YITH WooCommerce Brands
    • Integrate with Advanced Product Fields
  • Why Upgrade?
  • OTHER LINKS
    • FAQs
    • Changelog
    • Useful Links
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. Rule Settings

Count quantity by

How item quantity is counted in each rule

PreviousFiltered productsNextConditions

Last updated 1 year ago

Was this helpful?

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.