All articles
2026-08-12 · Dreamfox Team

Set a Minimum Order Quantity in WooCommerce

How to set a minimum order quantity in WooCommerce: per product, per cart and per category rules, step increments, validation and the mistakes that lose sales.

WooCommerce product card with a quantity stepper and shopping cart illustrating minimum order quantity rules

A minimum order quantity is a commercial decision dressed as a form field. Picking, packing and shipping a single low-value item can cost more than the item earns, so the rule exists to keep every order worth fulfilling. WooCommerce ships without it, which is why almost every wholesale or trade store ends up adding quantity rules.

Decide which level the rule belongs to

Before touching settings, decide what the constraint actually is:

  • Per product. The unit itself is impractical to ship alone — a single tile, one metre of cable, one sachet.
  • Per category. A whole range shares a packing format, so the rule sits on the category rather than on 400 products.
  • Per cart. The shipment is the cost, not the line. Below a total number of items (or a minimum purchase amount) the order does not pay for itself.

Most stores need two of the three. Putting everything at cart level frustrates customers buying one expensive item; putting everything at product level makes small mixed orders impossible.

Setting a per-product minimum

The mechanics are simple and easily got wrong. Three things must happen:

  1. The quantity input starts at the minimum instead of 1.
  2. The input's own attributes prevent typing a lower number.
  3. The cart update re-validates, because the browser is not a source of truth.

```php add_filter( 'woocommerce_quantity_input_args', function ( $args, $product ) { $min = (int) get_post_meta( $product->get_id(), '_min_qty', true ); if ( $min > 1 ) { $args['min_value'] = $min; $args['input_value'] = max( $min, (int) $args['input_value'] ); } return $args; }, 10, 2 ); ```

Then repeat the check in `woocommerce_check_cart_items` and add a notice rather than silently correcting the number. Silent correction is the single most reported complaint about quantity rules: the customer types 2, sees 6 in the cart, and assumes the store is padding the order.

Step increments matter as much as the minimum

Goods sold by the box, pallet or reel need multiples, not just a floor. A minimum of 6 with no step lets a customer order 7 and receive a broken box. Set `step` alongside `min` so the stepper arrows move in real packing units, and mention the unit in the product description — "sold in boxes of 6" prevents most support tickets on its own.

Communicate the rule before the cart

Every quantity rule should be visible in three places: the product page near the quantity field, the cart line when it is violated, and the checkout notice if the order still fails validation. Stores that only enforce at checkout see higher abandonment, because the customer has already invested time in the address form.

Doing it as configuration

Our Min & Max Quantities for WooCommerce plugin holds minimums, maximums and step increments per product, per variation and per category, and validates them again in the cart so the rule cannot be bypassed by editing quantities after adding to basket. For variable products where the constraint is the combined total across sizes, the combined variations add-on applies the rule to the group rather than to each size in isolation.

Related reading: minimum quantity by category and quantity limits by user role.

A short test before you go live

Add one product below the minimum, update the cart, and try to reach checkout. Then do the same in a mixed cart with a product that has no rule. If either path lets an invalid order through, the rule lives only in JavaScript and needs a server-side counterpart.

FAQ

How do I set a minimum order quantity in WooCommerce?
Set the minimum on the product itself, pre-fill the quantity field with that value, and validate it again when the cart is updated. Without the cart-side check a customer can still lower the quantity after adding the item.
Can I set a minimum quantity for the whole cart instead of per product?
Yes. A cart-level minimum counts total items across the basket and blocks checkout below the threshold. It suits wholesale stores where the constraint is the shipment, not the individual line.
What is the difference between a minimum quantity and a step increment?
A minimum sets the smallest allowed quantity; a step forces multiples of a number. A product sold in boxes of six typically needs both: minimum six, step six.
Does a minimum order quantity hurt conversions?
Only when it is hidden. Stating the rule on the product page and pre-filling the quantity field keeps conversion steady; discovering the rule at checkout is what causes abandonment.
How do I apply a minimum quantity to variable products?
Decide whether the rule belongs to each variation or to the combined total of the variations. Sizes of the same garment usually want a combined rule, while distinct variations want their own minimums.

This article is part of our WooCommerce quantity rules topic hub, where the related plugins and guides live together.

Keep reading