I need to force B2B customers to buy products by box quantity rather than units. To do that, I used Dynamic Rule, Type: Required Multiple. I created a rule just for articles with 6 pieces in a box and called this rule "Lot of 6". This rule works perfectly for all my single products, the minimum quantity automatically starts at 6 and increases by multiples of 6. However, the result is not the same for variation products. They start at 6 as well but it is possible to increase the quantity by 1. I am not sure if any other settings cause this, could you please help me with this?
We're familiar with the issue you're describing. Unfortunately this is because WooCommerce does not yet support the 'step' argument for individual variations, it only supports it for simple or variable products as a whole. We've opened a ticket with WooCommerce for this enhancement but there's not much progress yet: https://github.com/woocommerce/woocommerce/issues/31849
I believe that in your rule you selected individual variations. It should work if you select the main variable product (the parent product of those variations) - this would mean all variations would need to have the same quantity step.
Thank you for your reply. I noticed that it also works for variables products when all variations have the same box quantities but unfortunately setting a multiple for variables having variations with different box quantities will still remain an issue. Is there any way to be automatically notified if Woocommerce makes any development on this?
You can be notified if there's any update on that ticket as follows. If you're logged in on github, there's a 'Subscribe' button you can use on the right side bar - you would then be emailed when there's an update:
Hello,
I need to force B2B customers to buy products by box quantity rather than units. To do that, I used Dynamic Rule, Type: Required Multiple. I created a rule just for articles with 6 pieces in a box and called this rule "Lot of 6". This rule works perfectly for all my single products, the minimum quantity automatically starts at 6 and increases by multiples of 6. However, the result is not the same for variation products. They start at 6 as well but it is possible to increase the quantity by 1. I am not sure if any other settings cause this, could you please help me with this?
Regards
Hi there,
We're familiar with the issue you're describing. Unfortunately this is because WooCommerce does not yet support the 'step' argument for individual variations, it only supports it for simple or variable products as a whole. We've opened a ticket with WooCommerce for this enhancement but there's not much progress yet: https://github.com/woocommerce/woocommerce/issues/31849
I believe that in your rule you selected individual variations. It should work if you select the main variable product (the parent product of those variations) - this would mean all variations would need to have the same quantity step.
Kind regards,
Stefan
Hello Stefan,
Thank you for your reply. I noticed that it also works for variables products when all variations have the same box quantities but unfortunately setting a multiple for variables having variations with different box quantities will still remain an issue. Is there any way to be automatically notified if Woocommerce makes any development on this?
Kind regards
Burak
You can be notified if there's any update on that ticket as follows. If you're logged in on github, there's a 'Subscribe' button you can use on the right side bar - you would then be emailed when there's an update:
I'll do that. Thank you.