Buy B2BKing
$299 $199
Version 4.5.00 of B2BKing introduces a new feature: the ability to configure quantity rules (minimum, maximum, and quantity step) directly on the product page (it was previously already possible via dynamic rules):
Example:
"Quantity step" refers to a required multiple, such as a box or carton quantity. For example, if you sell a product that comes in boxes of 6, you can set the "Step" to 6 to prevent customers from purchasing different quantities. The plugin will force the quantity field to go from 6 to 12, 18, 24, and so on.
To configure this, simply edit any product and go to the "B2BKing" sidebar panel, where you can enter your desired quantity values:
Note: There are separate rows for each group. The "regular" option applies to all users. If a group has a dedicated value, that value overrides the "regular" option for users in that group.
In the screenshot above, the minimum is 10 items and the step is 5. This will apply to all users (B2C, logged-out, and B2B).
Let's look at another example:
In this example, B2C and logged-out users will have a minimum of 10 items, while B2B users will have a minimum of 20 items.
In the case of variable products, the quantities will apply to each variation. If you need to set different values for different variations, that can be done via dynamic rules.
B2BKing has a powerful dynamic rules system through which you can configure much more complex rules and scenarios. Here are just a few examples of what you can do with rules:
Dynamic rules are very flexible. The purpose of the feature described in this article (quantity rules on product pages) is to help you configure these quantities faster and more easily, without needing to set up and manage rules.
An advantage this feature introduces is the ability to set a unique minimum or step for each product directly by modifying that product's metadata or by using the WooCommerce importer.
If you go to Products -> Import, you can now find additional import options under "Quantity Rules":
You can use this to prepare a CSV file with products and quantities and then import it.
Alternatively, if you are a developer and prefer to edit the metadata directly, here are the meta keys you need to set:
If you need to enable or disable this feature—for example, to test its performance impact or resolve conflicts—you can do so via B2BKing -> Settings -> Other -> Components -> "Disable min / max / step on product page".
Powered by BetterDocs