Hello B2BKing team,
I’m trying to configure tiered pricing so that the discount is applied based on the combined quantity of all items in a product group/category, not per individual product.
Goal (expected behavior):
If a customer buys multiple different products from the same group (e.g., Group A), the total quantity across that group should count toward the tier.
Example tiers:
-
3+ units (any mix from Group A) → 5% off all Group A items in the cart
-
6+ units (any mix from Group A) → 10% off all Group A items in the cart
Current behavior (issue):
Tiered discount is calculated per product. So if Group A has 30 products, the rule only triggers when the quantity of a single product reaches the tier, instead of using the sum of quantities of all products in Group A within the cart.
How I configured it:
-
Rule Type: Tiered Price (Price by Quantity)
-
Applies to: Product Group / Category (not a single product)
-
Applies to who: Specific B2B group (hairdressers) and/or All users
-
Tiers: e.g., 3→5%, 6→10%, 12→15%
-
I need the rule to sum quantities across the selected group/category in the cart.
What I need:
-
Either a built-in option (e.g., “Calculate tiers based on combined quantity of selected group/category in cart”), or
-
A code snippet / filter / hook I can add to make tier thresholds evaluate against the aggregated quantity of all items in the chosen group/category.
Illustrative example:
Cart has:
-
Product A (Group A): qty 1
-
Product B (Group A): qty 2
Total for Group A = 3 → Should trigger the 3+ tier and apply 5% to both A and B.
Currently, discount does not trigger unless a single product reaches qty 3.
If you can provide a code snippet or point me to the correct setting to make tiered rules aggregate quantities by group/category across the cart, that would be perfect. Thank you!