Go to WooCommerce > Settings > Products > General to view the settings:
All settings are optional and should be numeric integer (whole number) values.
Edit a product within your WordPress admin and look inside the product data panel. You will see the following:
Like the order settings, these are all optional. Numeric values should be whole numbers.
Variations inherit the main product settings (above), however, you can also define them per variation. To enable the settings to appear per variation, check the Min/Max box:
If you go to Products > Categories and edit a category, you can set the group of option:
This lets you set up rules, such as “Customers must buy products in X category in groups of X only.”
The extension modifies the frontend in the following ways depending on where the min/max are specified (functionality and appearance can also be theme dependent):
If min/max quantities are specified at the product level, when the arrows are used to increase or decrease the quantity on a single product page, the extension won’t allow quantities outside the limits. If they are manually typed, any attempt to add it to the cart will be thwarted and a tooltip will advise accordingly:
If a product is added from the shop or archive pages, products are added to the cart in multiples of the minimum required quantity. If, when Add to cart is clicked again the total in the cart would be more than the maximum allowed quantity, the customer is redirected to the single product page where the following message is displayed (in an example where the minimum is 5 and maximum is 10):
If instead the min/max quantities are specified in the global rules, the product is added to the cart and a notice is prominently displayed on the Cart page.
Should a customer progresses to the checkout page regardless, or arrive there via other means, the notice is visible there too, and the rest of the checkout page is disabled, with Return to cart being the only option.
Yes, but with limitations. Min/Max Quantities allows product-level “Min/Max Quantity” rules to be overridden by the Min/Max Quantity options defined at Component level, however, “Group of” rules defined at Product level cannot be overridden at Component level.
Yes, a POT file is included.
Yes, it’s possible for settings at the product level, by using the built-in WooCommerce CSV Importer and Exporter.
The easiest approach is to configure the first product as per your required settings and create a CSV export. Note: to enable the export of the Min/Max Quantities field, Export Custom Meta? must be checked.
In a spreadsheet editor, copy the sample row you created above, and edit the values in the relevant columns as required for subsequent products.
Export as a CSV file before importing the CSV as per the Importer and Exporter instructions.