We’re using B2BKing Pro and are trying to create a dynamic rule that applies a discount based on a product attribute (custom taxonomy) and the total quantity of products with that attribute in the cart.
Our scenario
We have several products (for example, shampoos) that share an attribute called “Volume” (pa_talpa) with several values such as 1000 ml, 3000 ml, 5000 ml.
We created a rule that should apply a 50% discount when the cart contains at least 3 products with the same attribute value (for example, 3L).
The issue
At the moment, the rule applies immediately from the first product, even if there’s only one matching item in the cart.
We need the system to sum all products that share the same attribute value (regardless of product ID) and only apply the discount when the combined quantity reaches the threshold (≥ 3).
We have tried:
“Applies to selected products”
“Minimum quantity: 3”
Manually grouping products that share the same attribute value
However, the discount is still applied from the first unit.
When we use cart total quantity ≥ 3, it counts all cart items instead of only those matching the selected products or attributes.
When selecting specific products, the rule checks each product individually instead of treating them as one group.
What we’d like to confirm
Does B2BKing currently support rules that apply based on product attributes (e.g., pa_talpa = 1000 ml), not just by category or specific product IDs?
If not, could you please provide an official hook, snippet, or filter example that would allow us to:
count only the quantity of products with a specific attribute value in the cart;
apply the discount only when that quantity meets or exceeds a defined threshold?
Is this functionality planned for any upcoming releases?
This feature would be very important for us, as our pricing and promotions depend on product attributes such as size/volume, not only categories or individual product IDs.
We can provide screenshots or a short video showing the current setup and results if needed.
Hello B2BKing Team,
We’re using B2BKing Pro and are trying to create a dynamic rule that applies a discount based on a product attribute (custom taxonomy) and the total quantity of products with that attribute in the cart.
Our scenarioWe have several products (for example, shampoos) that share an attribute called “Volume” (pa_talpa) with several values such as 1000 ml, 3000 ml, 5000 ml.
We created a rule that should apply a 50% discount when the cart contains at least 3 products with the same attribute value (for example, 3L).
The issueAt the moment, the rule applies immediately from the first product, even if there’s only one matching item in the cart.
We need the system to sum all products that share the same attribute value (regardless of product ID) and only apply the discount when the combined quantity reaches the threshold (≥ 3).
We have tried:
“Applies to selected products”
“Minimum quantity: 3”
Manually grouping products that share the same attribute value
However, the discount is still applied from the first unit.
What we’d like to confirmWhen we use cart total quantity ≥ 3, it counts all cart items instead of only those matching the selected products or attributes.
When selecting specific products, the rule checks each product individually instead of treating them as one group.
Does B2BKing currently support rules that apply based on product attributes (e.g., pa_talpa = 1000 ml), not just by category or specific product IDs?
If not, could you please provide an official hook, snippet, or filter example that would allow us to:
count only the quantity of products with a specific attribute value in the cart;
apply the discount only when that quantity meets or exceeds a defined threshold?
Is this functionality planned for any upcoming releases?
This feature would be very important for us, as our pricing and promotions depend on product attributes such as size/volume, not only categories or individual product IDs.
We can provide screenshots or a short video showing the current setup and results if needed.
Thank you in advance for your help!