How to Set Minimum & Maximum Order Quantities in WooCommerce

Set a WooCommerce minimum order quantity, maximum limits, pack sizes and mix-and-match category rules, with clear cart messages. Step-by-step guide.
WooCommerce lets customers buy any quantity of any product by default. That works for most online shops. It breaks down when you sell in cases or bulk and need a minimum order to cover the shipping. Or, if you want to stop one buyer from taking all your limited stock, you might want to limit the orders.
This post shows you how to set minimum and maximum quantities, pack sizes and order amount limits in WooCommerce. We’ll use Min Max Order Quantity & Amount by Maxima Plugins. This plugin works with the block-based Cart and Checkout as well as the classic shortcode pages.
What are minimum and maximum order rules?
Order rules limit what a customer can put in the cart before checkout. They come in five common types:
- Minimum quantity: the customer must buy at least a set number of a product. A print shop might sell business cards from a minimum of 50 units.
- Maximum quantity: caps how many of a product one order can include, such as a sneaker drop limited to 2 pairs per order.
- Pack size (step): the quantity must be a multiple of a set number, like bottled water in cases of 6 or screws in boxes of 100.
- Category or brand total: counts the combined quantity across a group of products, such as any 12 bottles from the mineral water category.
- Minimum or maximum order amount: the cart total must stay above or below a set value, such as a $25 minimum so delivery stays profitable.
Wholesale and B2B stores usually combine a minimum quantity with a pack size. Retail stores more often need a store-wide minimum order amount or a per-order cap on limited stock.
Can WooCommerce do this without a plugin?
Currently, by default, no. WooCommerce doesn’t enforce minimum or maximum purchase quantities out of the box. The only current related core setting is Sold individually in the product’s Inventory tab, which limits a product to one per order.
Why the block checkout changes things
Since WooCommerce 8.3 (November 2023), new stores get the Cart and Checkout blocks by default. Older stores keep the shortcode pages unless they switch.
The blocks talk to your store through the Store API, not the classic cart hooks. That’s why many older plugins and copy-paste snippets silently stop working:
- Rules built on woocommerce_update_cart_validation only run on the shortcode cart. The Cart block bypasses them.
- Error messages added with wc_add_notice() are not read by the Store API, so customers never see them.
- WooCommerce 11.2 (September 2026) added a Store API validation filter, but you still need separate code for each cart type.
Not sure which cart you have? Open Pages > Cart in the editor. If you see a Cart block, you’re on blocks. If you see a [woocommerce_cart] shortcode, you’re on the classic cart.
Either way, you should use a plugin that supports both, so your rules keep working if you switch later.
How to set up min/max rules with Min Max Order Quantity & Amount
Min Max Order Quantity & Amount adds quantity and spend rules at five levels: store, category, brand, product and variation. It needs WordPress 6.8+, WooCommerce 10.0+ and PHP 7.4+. It works with classic and block themes, the Cart, Checkout and Mini-Cart blocks, and High-Performance Order Storage (HPOS).
Step 1: Install and activate the plugin
- Purchase the Min Max Order Quantity & Amount plugin
- Download min-max-order-quantity.zip from My account > Downloads on maximaplugins.com.
- In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the zip file and click Install Now.
- Click Activate.
If you’d rather skip zip files, Maxima’s free Maxima Connect plugin links your store to your account. You can then install and update plugins from the dashboard without pasting license keys.
Step 2: Set store-wide order rules
Go to WooCommerce > Settings > Products > Quantity rules. This screen sets four limits for the whole order:
- Minimum items per order
- Maximum items per order
- Minimum order amount
- Maximum order amount
For a $25 minimum order, enter 25 in Minimum order amount and save. Tick Include tax in spend rules if the amount should include tax.
One detail matters here: spend rules use product prices before coupons. A $30 cart with a $10 coupon still meets a $25 minimum.

Step 3: Add rules to a product
Edit a product and open the Quantity rules tab in the Product data box. Leave a field empty to use the category or brand default, or to have no limit.
- Minimum quantity: the lowest quantity a customer can buy.
- Maximum quantity: the highest quantity a customer can buy per order.
- Pack size: the quantity must be a multiple of this number.
- Minimum spend and Maximum spend: limits for this product’s line total.
- Category and brand rules: tick Ignore them for this product to use only the product’s own rules.
- Store-wide order rules: tick Don’t count this product towards them to leave it out of order limits.
Say you sell bottled water in cases of 6, from 2 to 16 cases per order. Enter 6 in Pack size, 12 in Minimum quantity and 96 in Maximum quantity.
The Effective rules box at the top of the tab shows the final result as you type. It labels where each value comes from, previews the text customers will see, and warns you if the maximum is lower than the minimum.

After you update the product, the product page shows the rule in plain words, such as “Sold in packs of 6”. The quantity box starts at 12 and moves in steps of 6, so customers can’t pick a quantity that won’t work.

Step 4: Set rules for variable products
For variable products, choose how the rules are counted under Variations > Count the rules for:
- Each variation separately: a minimum of 6 means 6 of each size or color.
- All variations together: a minimum of 6 can be any mix, such as 2 small and 4 large.
If one variation needs different limits, open that variation, switch on Quantity rules and enter its values. Variation limit values override the product’s limit values.

Step 5: Set category and brand rules
Go to Products > Categories (or Products > Brands) and edit a category. You’ll see two groups of fields:
- Default rules for each product: a minimum, maximum and pack size that every product in the category uses, unless the product has its own value.
- Rules for all products together: totals checked in the cart across the whole category, such as any 12 units in packs of 6, or a minimum spend for the category.
The second group is how you build mix-and-match rules. A customer can buy 4 of X, 4 of Y and 4 of Z to reach a minimum of 12.
If a product sits in several categories, the least strict default wins: the lowest minimum and pack size, and the highest maximum. The category and brand lists also get a Quantity rules column, so you can review your setup at a glance.

Step 6: Choose what customers see
Under Show rules to customers, choose where the plain-language rules appear: product pages; the cart, mini-cart and checkout; and shop and category pages.
When a cart breaks a rule, the message says exactly what to change, such as “You can buy up to 4 items from Plants. Please remove 8.” Customers can’t place the order until the rules are met. The cart, mini-cart and checkout also show a short summary under each item, such as “Packs of 6 · Min 12 · Max 96”.
The plugin also corrects quantities added from shop pages, side carts and wishlists to the nearest allowed amount and tells the customer what changed. You can switch this off.

To move the product-page notice in a block theme, add the Product Quantity Rules block to the single product template. In a classic theme, copy public/templates/rules-notice.php to yourtheme/min-max-order-quantity/rules-notice.php and edit the copy.
Test your rules before going live
Test on a staging copy first. Maxima’s licenses don’t count staging or local copies, so this costs nothing extra. Then check:
- Effective rules. Open a few products and confirm the box shows the values you expect.
- Product page. The quantity box should start at the minimum and move in pack-size steps.
- Cart block. Raise a quantity past the maximum. You should see a message, and checkout should stay blocked until you fix it.
- Shop page and side cart. Add a product from the shop grid. Its quantity should be corrected, with a notice.
- Category totals. Mix products from one category and confirm the plugin checks the total, not each item.
- Order amount. Apply a coupon and confirm the minimum still uses pre-coupon prices.

Common mistakes to avoid
- A minimum that isn’t a multiple of the pack size. The plugin rounds the minimum up to a whole pack and the maximum down. A minimum of 10 with a pack size of 6 becomes 12.
- Expecting coupons to count. Spend rules ignore coupons. If you need a minimum that applies after discounts, ask Maxima’s support before you buy.
- Overlapping categories. The least strict category default wins. Set the value on the product itself to override it.
- Low stock. If a product’s stock can’t cover its minimum, it shows as out of stock. Products on backorder stay available.
- Items that shouldn’t count. Leave free samples or gift cards out of store-wide rules with Don’t count this product towards them.
Pricing and who it’s for
Min Max Order Quantity & Amount is sold as a yearly license: $69 for 1 store, $99 for 5 stores or $169 for 25 stores (prices as of October 2026).
Staging and local copies don’t count toward the limit. Every license includes updates, support and a 14-day money-back guarantee, and payment runs through Paddle (card, PayPal, Apple Pay or Google Pay). You can try the plugin first in Maxima Plugins site’s live demo store, with no sign-up needed.
It’s a good fit if you:
- Sell in cases, packs or rolls
- Run a wholesale or B2B store with minimum orders
- Need mix-and-match rules across a category or brand
- Cap limited releases per order
- Build stores for clients (the 25-store license works out to about $7 per store)
Frequently asked questions
Does it work with the WooCommerce Cart and Checkout blocks?
Yes. Rules, summaries and messages work in the Cart, Checkout and Mini-Cart blocks, and in the classic shortcode cart and checkout.
Do coupons count toward the minimum order amount?
No. Spend rules use product prices before coupons. You can choose whether tax is included.
Can I sell products in packs, like cases of 6?
Yes. Set a pack size on the product, or a mix-and-match pack size for a whole category or brand. Quantity boxes then move in steps of that size.
Which rule wins when a product has several?
Variation values beat product values, and product values beat category and brand defaults. Category totals, brand totals and store-wide rules are checked on top of those, in the cart.
Can customers get around the rules with a side cart or wishlist?
No. Quantities added from anywhere are checked in the cart. With automatic correction on, they’re fixed right away, and orders can’t be placed until every rule is met.
What happens if stock is lower than the minimum?
The product shows as out of stock, so customers never see a purchase they can’t complete. Products on backorder stay available.
Can wholesale customers get different limits?
Not from a settings screen. Developers can change rules per customer or role with the plugin’s mmoq_product_rules filter.
Final thoughts
Minimum and maximum order rules protect your margins on small orders and your stock on popular ones. WooCommerce doesn’t include them, and the block checkout broke many of the old workarounds.
Min Max Order Quantity & Amount covers the common use cases (pack sizes, minimum orders, per-order caps and mix-and-match category totals) in both the block and classic checkout. And it tells customers exactly what to change. Try it in the live demo, then get the plugin with its 14-day money-back guarantee.
Have a question about your store’s setup? Leave it in the comments, and check out WPGIZ on YouTube for more WooCommerce tutorials.
Disclaimer: This post may contain affiliate links and we may receive a small commission if you purchase something by following them. However, we recommend services/products that we believe good to serve your purpose.



