Can I Set Min or Max Quantity on a WooCommerce Product?
How to Set WooCommerce Quantity Limits
A dedicated quantity-rules plugin typically adds minimum/maximum (and sometimes "step," like only allowing multiples of 5) fields directly to the product editor, then enforces those rules both on the frontend quantity selector and at checkout validation. For a simpler, single-product need, a small custom snippet can achieve the same result by checking the specific product's cart quantity during checkout validation.
Why Stores Need This
- Wholesale or bulk-only products often require a minimum order quantity to make the transaction worthwhile at the offered price point.
- Limited or high-demand items sometimes need a maximum per-order cap to prevent one customer from buying out the entire available stock, giving more customers a fair chance.
- A product sold in fixed multiples (a case of 6, for instance) may need quantity steps enforced rather than allowing any arbitrary number.
- This is different from a store-wide minimum order value (covered elsewhere), which restricts the total cart amount rather than a specific product's quantity.
Setting This Up
- Use a dedicated quantity-rules plugin for a flexible, product-by-product configuration without custom code.
- For a simpler, one-off need, a small custom validation snippet checking the specific product and enforcing the rule at checkout works too.
- Display the rule clearly on the product page so customers understand the requirement before reaching checkout.
Need custom quantity rules built and properly tested? See custom WooCommerce development.