1. WooCommerce Quantity Manager
  2. Getting Started

Setting quantity rules for individual products and variations

The WooCommerce Quantity Manager plugin lets you set quantity rules on a global, category or product/variation level. This article explains how to manage quantities for individual products or variations.

When you set quantity rules for individual products or variations, these override any global or category-level rules which are affecting the same product. Similarly, if you set product and variation rules for the same product, then the variation-level rules will be used for variations that have their own rule. Variations without their own rule will use the product-level rule.

Products

You can add rules for individual products on the 'Add/Edit Product' screen, in the 'Inventory' tab of the 'Product Data' section.

Product-level rules apply to most product types, such as simple products. If you set product-level rules for a variable product then these rules will be used for all the variations, except for any variations where you have overridden this by adding rules to the individual variation.

For example, if you set a product-level minimum quantity of 10 for a variable product, then the customer can 10 or more of each variation. The rule is shared across multiple variations, so they can can add 5 of one variation and 5 of another to make up the minimum.

Quantity rules

These options control the quantity of the product that the customer can buy. Enter a whole number in the Minimum and Maximum fields.

For example, if you set a minimum of 5 and a maximum of 10 then the cart can contain a quantity of between 5 and 10 of this product (or any combination of 5-10 of its variations). In addition, the cart can contain an unlimited number of other products (subject to any other quantity rules you have set elsewhere in your store).

You can enter a minimum quantity, maximum quantity, or both. If you leave either field blank then no rule will be set. For example, if you enter a minimum of 5 and no maximum then customers buying this product will be forced to add a quantity of at least 5, but there will be no maximum.

This can be overridden for specific variations.

Value rules

Enter a price without the currency symbol (e.g. 10 or 15.99) to set a minimum and/or maximum value of this product that customers can purchase.

For example, if you set a minimum of $20 and a maximum of $100 then the cart can contain any quantity of the product within this price range. In addition, the cart can contain an unlimited value of other products (subject to any other quantity rules you have set elsewhere in your store).

You can enter a minimum value, maximum value, or both. If you leave either field blank then no rule will be set. For example, if you enter a minimum value of $20 and no maximum then customers buying this product will be forced to add at least $20 worth of this product (or any combination of its variations) before they can check out, but there will be no maximum.

Default quantity

You can change the default quantity using this option. Enter any whole number, including 0.

The default quantity will appear as the starting value in the quantity field for the product, except for any variations where you have overridden this.

The default quantity just sets the initial quantity starting value, which the customer can then change. It does not affect the quantity they can add to the cart, and you can do this with the other options in WooCommerce Quantity Manager.

Quantity step values

By default, customers can purchase products in any quantity increment - i.e. 1, 2, 3, and so on. Enter a whole number to add step values/quantity groups for this product. This forces customers to purchase it in specific quantity increments.

For example, if you enter 5 then the product can only be bought in a quantity of 5, 10, 15, 20, etc. Again, this can be overridden for specific variations.

Products that can only be bought individually

WooCommerce itself has a checkbox labelled "Enable this to only allow one of this item to be bought in a single order", which appears in the 'Inventory' tab. If this box is ticked then the quantity rule options will be greyed out for that product, and any category or global rules will be ignored for the product if they conflict with this option.

However, the product can still be used to calculate whether any global or category-level rules pass or fail when combined with other products in the cart. For example, there may be 1 of this product in the cart (because it can only be bought individually) and 4 other products in the cart - so this would satisfy a global minimum quantity rule of 5.

Variations

If you want all the variations for a particular product to have the same quantity rules, then you should set the rules at the product level using the instructions above. They will then be used together to validate the rules.

For example, if a variable product has a minimum of 5 and a maximum of 10 then you can order 5-10 of any combination of its variations.

Alternatively, if you want to add rules to individual variations then you can do this in the 'Variations' tab of the 'Product Data' section of the 'Add/Edit Product' screen. For example, you should do this if you want to force customers to buy 5-10 of a specific variation.

Quantity rules

These options control the quantity of this variation that the customer can buy. Enter a whole number in the Minimum and Maximum fields.

For example, if you set a minimum of 5 and a maximum of 10 then the cart can contain a quantity of between 5 and 10 of this variation. In addition, the cart can contain an unlimited number of other products, or variations of the same product (subject to any other quantity rules you have set elsewhere in your store).

You can enter a minimum quantity, maximum quantity, or both. If you leave either field blank then no rule will be set. For example, if you enter a minimum of 5 and no maximum then customers buying this variation will be forced to add a quantity of at least 5, but there will be no maximum.

Value rules

Enter a price without the currency symbol (e.g. 10 or 15.99) to set a minimum and/or maximum value of this variation that customers can purchase at a time.

For example, if you set a minimum of $20 and a maximum of $100 then the cart can contain any quantity of the variation within this price range. In addition, the cart can contain an unlimited value of other products or variations (subject to any other quantity rules you have set elsewhere in your store).

You can enter a minimum value, maximum value, or both. If you leave either field blank then no rule will be set. For example, if you enter a minimum value of $20 and no maximum then customers buying this variation will be forced to add at least $20 worth of it before they can check out, but there will be no maximum.

Default quantity

You can change the default quantity using this option. Enter any whole number, including 0.

The default quantity will appear as the starting value in the quantity field when customers select the variation.

The default quantity just sets the initial quantity starting value, which the customer can then change. It does not affect the quantity they can add to the cart, and you can do this with the other options in WooCommerce Quantity Manager.

Quantity step values

By default, customers can purchase variations in any quantity increment - i.e. 1, 2, 3, and so on. Enter a whole number to add step values/quantity groups for this variation. This forces customers to purchase it in specific quantity increments.

For example, if you enter 5 then the variation can only be bought in a quantity of 5, 10, 15, 20, etc.

Related Articles

Still need help?
If searching the knowledge base hasn't answered your question, please contact support.