Public Ticket #4570737

Incorrect Quantity restrictions

Closed
Comments
7 Tickets 4
Suleman started the conversation 4 months ago on June 17, 2026 at 1:36am

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?

2,762
KingsPlugins replied 4 months ago on June 17, 2026 at 11:33pm

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://b2bkingplugin.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

2,762
KingsPlugins replied 4 months ago on June 21, 2026 at 7:59pm

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

7 Tickets 4
Suleman replied 4 months ago on June 22, 2026 at 1:02am

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

2,762
KingsPlugins replied 3 months ago on June 23, 2026 at 10:50pm

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

Sign In