WooCommerce Minimum Maximum Quantity and Order helps you maximise your store’s revenue by setting rules on quantity and values. You can control the minimum and maximum for:
- Quantity purchasable of any product or variation
- Value purchasable of any product or variation
- Total quantity of products in an order
- Value of the total order
Moreover, you can also control:
- The default quantity for any product or variation
- The increment or step value for the quantity – so your customers can order in sets of 5 e.g.
- Define custom quantities – e.g. 1, 6, 12, 24
- Display your quantity field as a dropdown
You can extend this control:
- Globally – apply a single rule to all products in your store
- By category or attribute – create multiple rules that can apply to products in specified categories or with specific attributes
- To multiple products
- By excluding specific products from rules
- To specific user roles
Min Max Quantity and Order also allows you to display the minimum and maximum rules for each product with customisable labels. You can also customise the error messages the plugin will display.
Min Max Quantity and Order is compatible with all Plugin Republic plugins:
- Add quantity controls to your wholesale store
- Use Product Table Ultimate to …
- Fees and Discounts …
Setting global rules
If you need to set rules that will apply to all products in your store or to orders as a whole, you can set them globally.
Go to WooCommerce > Setting > Min Max. On the General tab you can enter the following rules:
These settings apply to the order.
- Minimum Order Value – this is the minimum value of the entire cart
- Maximum Order Value – this is the maximum value of the entire cart
- Minimum Order Quantity – this is the minimum cumulative number of products in the entire cart
- Maximum Order Quantity – this is the maximum cumulative number of products in the entire cart
Global Product Settings
These rules apply to all products in your store. You can override these settings for certain products by setting a rule or updating the product or variation settings.
- Minimum Value – this is the minimum value purchasable of each product
- Maximum Value – this is the maximum value purchasable of each product
- Minimum Quantity – this is the minimum quantity purchasable of each product
- Maximum Quantity – this is the maximum quantity purchasable of each product
- Default Quantity – this is the default quantity for each product. By default, this would be 1
- Quantity Increment – this is the step value for each quantity field, i.e. the amount by which the quantity field increases or decreases. By default, this would be 1. Note that this will be based off your Minimum Quantity setting
You can use labels to tell users what the minimum and maximum values and quantities are for each product.
- Display Labels – choose whether to display label before the price label or below the add to cart button. Note that variations always display labels as part of the variation description
- Minimum Quantity Label
- Maximum Quantity Label
- Minimum Value Label
- Maximum Value Label
On the Error Messages tab, you can set the following:
- Minimum Order Value Error
- Maximum Order Value Error
- Minimum Order Quantity Error
- Maximum Order Quantity Error
You can also set error messages for products:
- Minimum Value Error
- Maximum Value Error
- Minimum Quantity Error
- Maximum Quantity Error
You can use the following tags to display different values in your error messages:
Setting rules for multiple products
You can set rules that apply to multiple products, e.g. all products in specific categories, products with certain attributes, or specific products.
These rules will take priority over global rules so you could set a global rule of a minimum quantity of 3 that would apply to all the products in your store. Then you could set a rule for a certain category that specified a minimum quantity of 5.
You can set multiple rules and different rules may apply to the same product. The plugin will try to make a sensible choice if a conflict arises – e.g. if Rule A specifies a minimum value of 100 and Rule B specifies a minimum value of 150, the plugin will apply the lowest of the two.
In some cases, higher priority rules – those at the top of the list – will override lower priority rules. You can change the priority of rules using a custom post type order plugin, e.g. this one.
To set a rule for multiple products, go to WooCommerce > Min Max Rules and click Add New. The rules are organised in three sections:
Rule Applies To
In this section you can define which products the rule will apply to using the following settings:
- Applies to – choose from:
All – this rule will apply to all products in your store
Selected Attributes – the rule will apply to products with certain attributes
Selected Categories – this rule will apply to products in certain categories
Selected Products – the rule will apply to certain products
- Attributes – specify which attributes to apply the rule to
- Categories – specify which categories to apply the rule to
- Products – specify which products to apply the rule to
- Excluded Products – use this setting to exclude certain products from the settings above
- Roles – you can specify that the role only applies to some user roles
- Combine products – if you choose ‘Selected Categories’ then rules you set will apply separately to each product within the chosen categories. If you enable ‘Combine products’ then the rules will apply to all products combined. So if you set the max quantity to 50 and enable ‘Combine products’, the user can add multiple products from the chosen category to their cart to a maximum of 50. If you disable ‘Combine products’ then the user can have a maximum of 50 of each product
Use this section to define rules for the value of the product
- Minimum Value – this is the minimum cost of each product in the rule that the user must purchase
- Maximum Value – the total cost of each product cannot exceed this amount
This section allows you to set different parameters for product quantities
- Minimum Quantity – the minimum number of each product in this rule that must be purchased
- Maximum Quantity – the user cannot exceed this quantity for each product in the rule
- Default Quantity – this is the default quantity on the product page, usually 1
- Quantity Increments – this is the step value. It’s usually 1 but you can require users to purchase in any incremental value, e.g. in groups of 5 – 5, 10, 15, etc. Note that this will be based off your Minimum Quantity setting
- Display as Dropdown – check this option to display the quantity field as a dropdown with a list of values instead of a number input field. You need to specify a Maximum Quantity setting for this to work
- Defined Quantities – this option allows you to specify groups of possible quantities that don’t have a standard step value. So if you were selling bottles of wine, for example, you could specify 1, 6, 12 for single bottles, half cases, and full cases. Enter each value on its own line in the field.
You can also include text in the field so the user would see ‘Single bottle’, ‘Half case’ etc. To do this, enter a numeric value followed by a pipe sign ‘|’ and your text, e.g:
1 | Single bottle
6 | Half case
12 | Full case
You can also set your rules at product and variation level. On the General tab in the Product data section, you can enter settings that will just apply to that product.
Note that product-level settings take priority over rules set for multiple products and global rules. So if you have set a rule for all products in the Tee Shirts category to have a minimum quantity of 5, you can set a product-level rule that will override this.
The settings are the same as above in the rules for multiple products.
You can set variation-level rules. These will override and product-level rules, which in turn will override global rules. Variation rules appear under the variation price.
At variation level, you can set:
- Minimum Value
- Maximum Value
- Minimum Quantity
- Maximum Quantity
- Default Quantity
- Quantity Increment