2. Dynamic Rules - Go to B2BKing -> Dynamic Rules and check if there are any Minimum, Maximum, or "Require Multiple" rules that might be applying to that group.
We're also happy to review things directly on the site if you'd like. For that, we'd need a backend login or a staging clone site. It would also help if you could share:
- The specific customer username experiencing the issue
- Which products or pages are affected
- Any other details that would help us reproduce it
I went over the docx. Something I noticed is that in your screenshot here (https://i.imgur.com/P1GbWPX.png), the Perth Metro group has no restrictions set. However, when a group doesn't have specific restrictions, the plugin automatically defaults to the 'Regular' restrictions. This works just like pricing: if a user doesn't have a special group price, the regular price applies.
Because of this, in that specific image, users in the Perth Metro group are receiving the Regular restriction (maximum = 2)
To prevent the Regular restrictions from applying to them, you can intentionally set custom values directly for the Perth Metro group. For example, you could set Min = 1, Max = 99999999999, and Step = 1. This will override the default limits.
If you think that's not quite the issue, I'm also happy to check directly on the site. You can create an account for us using [email protected].
You are correct and this is the problem which I will now fix, however, if you do not fill in any quantities at product level for Regular customers, then the step quantities are in units and unlimited by default. By this logic I left the Metro customer blank, which I think should be the case.
The way that you have programmed this is difficult for me (the end user), as I will need to go to all the impacted products and place a value like you suggested. The defaul should be if blank then unlimited.
I appreciate the feedback. It's difficult to find a perfect solution for all sites, because there are also sites with many groups where it's easier to configure it only once.
But I understand that's not ideal for your setup, so I've worked on a code snippet to help solve it:
I have a customer group that should not have quantity restrictions, however, customers in that group are complaining that they have restrictions.
I checked everything and it looks fine. can you help with this please?
Hi Suleman,
Thanks for reaching out,
There are a couple of places where quantity restrictions can be configured, so it's worth checking both:
1. Product-level settings - Each product can have its own min/max/step quantity rules set in the B2BKing panel on the product edit page. You can find more details here: https://woocommerce-b2b-plugin.com/docs/quantity-rules-min-max-step-on-product-page/
2. Dynamic Rules - Go to B2BKing -> Dynamic Rules and check if there are any Minimum, Maximum, or "Require Multiple" rules that might be applying to that group.
We're also happy to review things directly on the site if you'd like. For that, we'd need a backend login or a staging clone site. It would also help if you could share:
- The specific customer username experiencing the issue
- Which products or pages are affected
- Any other details that would help us reproduce it
Kind regards,
Stefan
Hi Suleman,
Thank you for the extra details,
I went over the docx. Something I noticed is that in your screenshot here (https://i.imgur.com/P1GbWPX.png), the Perth Metro group has no restrictions set. However, when a group doesn't have specific restrictions, the plugin automatically defaults to the 'Regular' restrictions. This works just like pricing: if a user doesn't have a special group price, the regular price applies.
Because of this, in that specific image, users in the Perth Metro group are receiving the Regular restriction (maximum = 2)
To prevent the Regular restrictions from applying to them, you can intentionally set custom values directly for the Perth Metro group. For example, you could set Min = 1, Max = 99999999999, and Step = 1. This will override the default limits.
If you think that's not quite the issue, I'm also happy to check directly on the site. You can create an account for us using [email protected].
Kind regards,
Stefan
Thanks Stefan,
You are correct and this is the problem which I will now fix, however, if you do not fill in any quantities at product level for Regular customers, then the step quantities are in units and unlimited by default. By this logic I left the Metro customer blank, which I think should be the case.
The way that you have programmed this is difficult for me (the end user), as I will need to go to all the impacted products and place a value like you suggested. The defaul should be if blank then unlimited.
Regards,
Suleman
Hi Suleman,
I appreciate the feedback. It's difficult to find a perfect solution for all sites, because there are also sites with many groups where it's easier to configure it only once.
But I understand that's not ideal for your setup, so I've worked on a code snippet to help solve it:
https://pastecode.io/s/t23pdt2e
You can add this code to your theme's functions.php file or by using any code snippets plugin.
With this snippet, the plugin should no longer default to the regular restrictions when the group fields are left blank.
Let me know if this works for you,
Kind regards,
Stefan
Stefan,
Thanks for this, I'll give it a go!
Regards,
Suleman