Table of Contents
Trying to find a way to control the number of items customers can buy in a single purchase from your store? In this in-depth tutorial, I’ll show you step-by-step how to add WooCommerce limit quantity rules per product, per customer, per purchase, per product attribute, etc. — zero coding skills required.

Do you want to control the number of items shoppers can purchase per order from your WooCommerce store? This guide is for you.
Quantity restrictions are a powerful way to tailor your WooCommerce store’s purchasing rules. However, adding quantity restrictions can’t be done with WooCommerce alone. To enforce minimum, maximum, or step increment quantity rules, you’ll need the help of a plugin.
Here’s what we’ll cover:
- An overview of quantity limits in WooCommerce.
- Top reasons for setting up WooCommerce quantity limits.
- Step-by-step tutorials on how to limit product quantity per product, per product attribute, per customer, per purchase, per user role, etc. using the Min/Max Quantity for WooCommerce plugin.
- Answers to common questions about limiting product quantity in WooCommerce.

The plugin used in this tutorial
- Min/Max Quantity for WooCommerce: Our very own hand-crafted plugin used by thousands of WooCommerce stores to limit product quantity (modifying the default quantity, adding minimum quantity rules, changing the quantity picker style, adjusting the step quantity value, setting maximum quantity limits, and more. Check out the plugin demo or define product quantity limits in your WooCommerce store with the free or pro version now.
Min/Max Quantity for WooCommerce
Set min/max/step quantities to manage product quantities effectively and enhance the customer experience in your WooCommerce store.
14-day, no-questions-asked money-back guarantee.

Let’s jump right into it.
What are WooCommerce quantity limits?
In WooCommerce, quantity limits are restrictions you can place on the number of products customers can buy in a single order. These limits can be applied per product (simple or variable), per product attribute, per product category, or globally.
Common use case examples of quantity limits in WooCommerce
- Wholesale stores. For example, requiring a minimum order of $500 or at least 10 items per product.
- Limited stock items. For example, restricting purchases to one per customer during a promotional sale.
- Subscription boxes. For example, enforcing quantities in increments (e.g., 3, 6, or 9) for pre-set subscription packs.
WooCommerce quantity limits are useful for managing inventory levels, preventing customers from misusing promotions, and making sure that limited-stock items are distributed fairly.
Types of WooCommerce quantity limits

There are various ways that you can control how many units of a product a customer can purchase in a single order. You can set:
Minimum quantity limits
MOQ requirements ensure customers purchase a specific number of items before completing the purchase. For example, let’s say you sell wholesale T-shirts and want customers to order at least 10 units per product. Setting a minimum quantity of 10 will block smaller orders at checkout.
Examples of WooCommerce minimum quantity limits
- A wholesale clothing materials supplier that requires buyers to purchase at least 10 units of a particular item to qualify for bulk pricing.
- An online bakery that sells cupcakes may set a minimum order quantity of 6 to make packaging and delivery more efficient.
Maximum quantity limits
A maximum quantity restriction caps the number of units a customer can purchase in a single transaction. For example, let’s say you’re running a massive Black Friday sale and want to limit customers to 2 units per discounted product to prevent bulk buying. Setting the maximum quantity to 2 safeguards promotional offers from being exploited.
Examples of maximum quantity limits
- A content creator that sells limited-edition merchandise through their online store might restrict buyers to 2 units per order to ensure fair distribution.
- A B2B company that runs online events may only allow customers to buy one ticket bundle to dissuade scalpers.
Step quantity limits
Step quantities enforce purchases in multiples of a specific number. For instance, let’s say you sell bottled water in packs of 6, setting the step quantity to 6 ensures customers can only order 6, 12, 18, etc.
Examples of step or increment quantity limits
- A beverage company that requires orders in packs of 6, so customers can buy 6, 12, 18, and so on, but not 7 or 9.
- A tile retailer might set step quantities of 5. This guarantees that customers order full boxes instead of loose pieces.
Per-customer quantity limits
These rules restrict the number of units a single customer can purchase across multiple orders or during a specific timeframe. Similar to maximum quantity limits, per-customer quantity limits are particularly helpful for managing inventory during high-demand launches or preventing repeat customers from hoarding stock.
Examples of per-customer quantity limits
- A tech store that allows only one gaming console per customer during a product launch period.
- A subscription box retailer that limits each customer to three boxes per month.
Category-level quantity limits
Instead of applying rules to individual products, category-level limits control how many items from a specific product category can be added to a customer’s shopping cart. Category-level quantity limits are best for stores that want to manage grouped inventory or enforce special rules for certain product lines.
Examples of category-level quantity limits
- A clothing store that caps purchases from the “Clearance” category at 10 items per order.
- A wine retailer that enforces a rule where customers can buy a maximum of 12 bottles across all wine products in a single order.
Cart-level and order-level quantity limits
These limits apply to the entire cart, regardless of which products are included. Cart-level and order-level quantity limits are most useful when you want to control overall order volume rather than individual product limits.
Examples of cart-level and order-level quantity limits
- A gift shop limits the total number of items per order to 20, regardless of product type.
- A store selling heavy equipment restricts total cart weight and quantity for shipping efficiency.
Why set WooCommerce limit quantity rules?
Here are the most common reasons why WooCommerce store owners opt to restrict the number of items customers can purchase in each order.
- To ensure fair distribution of products. If you sell high-demand products or you’re running promotional offers, limiting the maximum quantity per order ensures more customers can access them. For instance, if your store sells limited-edition gaming consoles, allowing each customer to buy only one ensures more people have a chance to purchase. This not only prevents stockouts but also builds trust and goodwill with customers who might otherwise be frustrated by scalpers or hoarders.
- To enforce wholesale rules. Wholesale stores often need to implement minimum quantity limits to comply with suppliers’ pricing agreements, create operational efficiencies, and make reasonable profits. For example, a store that sells cleaning supplies in bulk might require customers to buy at least 50 units per product. This protects their margins and deters retail buyers from abusing wholesale pricing.
- To optimize packaging and logistics. In WooCommerce, quantity limits are also used to simplify logistics and make packaging less complex. For instance, a store that sells fragile items like ceramic mugs might develop custom packaging that can fit 3 items at once and thus set step quantity limits of 3. This ensures items are packaged securely and shipped cost-effectively. Larger orders could require oversized packaging or lead to higher shipping costs, which may cut into profits.
- To encourage bulk purchases. Stores that sell to retail buyers set minimum purchase quantities to incentivize customers to buy more. For example, a store selling organic snacks might set a minimum order of 10 units per item to offer free shipping or discounted pricing. This not only increases average order value but also reduces per-order logistics costs for the seller.
- To promote a premium experience. Stores positioned as premium brands typically restrict quantities to create a sense of exclusivity and align with a premium brand strategy. For example, a store that sells handcrafted luxury candles can limit purchases to 3 per customer to reinforce the product’s value and scarcity.
The best WooCommerce plugin for limiting order quantity

Min/Max Quantity for WooCommerce is a powerful freemium plugin that lets you control the number of products customers can purchase per order. It syncs with WooCommerce’s default product quantity settings and lets you set all kinds of quantity limits — minimum, maximum, step increments, per customer, per category, etc.
Min/Max Quantity for WooCommerce is super flexible and enables you to set quantity restrictions:
- Globally. To all products in your store.
- Per product. To specific products (both simple and variable products).
- Per category. To specific product categories.

Plus, it comes with a host of features to remove friction around quantity selection in the ordering process and improve your store’s overall user experience.
Let’s look at its features in greater detail.
Flexible limit types
You can set various types of limits — minimum, maximum, step increments, etc. — to tailor purchasing rules to your store’s goals. Plus, it lets you choose how to enforce them in your store, whether globally, per product, per customer, per user role, order, or category.
Dynamic conditions
This WooCommerce quantity limits plugin allows you to set triggers that apply quantity rules based on conditions like product category, cart value, or customer location.
For example, you can choose to allow customers to purchase up to 10 units of a product only if their total cart value exceeds $100. Or you can set limits for specific product categories e.g. limit heavy items to 2 per order for certain shipping zones.
Role-based restrictions
Role-based rules let you differentiate between customer cohorts. It allows you to customize limits based on user roles, such as guests, subscribers, or wholesale customers.
For example, if you run a hybrid wholesale and retail store, you can set a minimum purchase requirement of 100 units for wholesale buyers, while retail customers are limited to a maximum of 10.
Scheduling options
It supports time-based rules (useful for flash sales, product launches, seasonal promotions, etc). For instance, during Black Friday, you could limit purchases to 2 units of a highly discounted product per customer, but only for 24 hours.
Customizable error messages
It comes with default placeholder text to communicate WooCommerce quantity limits to customers and provide actionable feedback if they don’t meet the requirements (for example, if a customer tries to add more than the allowed quantity). You can tailor the messages to match your brand tone and enhance customers’ experience if needed.
Default quantity
It allows you to define default quantities for products when added to the cart. This feature saves customers time, ensures compliance with store policies, and minimizes errors. It is especially useful for stores selling items in predetermined bundles or packs. For example:
- A grocery store might set the default quantity of water bottles to 12 because they’re sold by the case.
- A wholesale store could set the default quantity for bolts to 50 units to streamline ordering.
Quantity button styles
Quantity selectors impact the user experience and should align with your store’s design. With Min/Max Quantity for WooCommerce, you can change WooCommerce’s default quantity buttons to radio buttons, select dropdowns, and an input field.
Cart and checkout validation
This WooCommerce quantity limits plugin verifies the number of items in each customer’s cart to confirm that they’ve adhered to your quantity rules before allowing them to complete checkout.
If a customer adds fewer than the required minimum quantity or exceeds the maximum allowed, it will display the error message you set to prompt customers to adjust the product quantity in their carts.
Min/Max Quantity for WooCommerce
Set min/max/step quantities to manage product quantities effectively and enhance the customer experience in your WooCommerce store.
14-day, no-questions-asked money-back guarantee.

Tutorial: How to limit quantity in WooCommerce
In this section, I’ll show you how to use Min/Max Quantity for WooCommerce to control the number of products customers can buy in a single order. We’ll set WooCommerce quantity limits per product, per product category, and storewide.
If you’re a visual learner, feel free to check out the video walkthrough below. Otherwise, continue reading.

Let’s get started.
How to limit quantity in WooCommerce
Follow these steps to set up WooCommerce quantity limits:
- Install the Min/Max Quantity for WooCommerce plugin on your site.
- To set up storewide quantity limits, head to your WordPress dashboard and go to Dotstore Plugins → Min/Max Quantity → Settings → General.
- Here, you can define the minimum and maximum order quantity for all products in your WooCommerce store.
- After you’ve configured the quantity limits, press Save Changes at the bottom to apply them.
How to limit quantity in WooCommerce per product
Follow these steps to define WooCommerce quantity limits per product:
- From your WordPress dashboard, navigate to Dotstore Plugins → Min/Max Quantity → Add New.
- Provide a name for the quantity limit rule (this is for internal reference).
- Locate the “Advanced Rules” section and open the first collapsible tray.
- From here, define the conditions that determine how the rule will function.
- To apply the quantity limit to specific products, choose “Product” from the left dropdown and select the relevant product names in the right dropdown.
- To apply the quantity limit to product categories, choose “Category” from the left dropdown and select the desired product categories in the right dropdown.
- To apply the quantity limit to specific products, choose “Product” from the left dropdown and select the relevant product names in the right dropdown.
- In this section, you can also add additional rules, such as user roles, shipping zones, stock levels, and more.
- After defining all conditions, scroll to the “Actions” section to set the quantity requirements: maximum quantity limits, step quantities, and default quantity. You can also change the quantity selector button, as desired.
- Once finished, click “Save changes” at the bottom of the page.
How to limit quantity in WooCommerce per customer
Follow these steps to set WooCommerce quantity limits per customer or per user role (for instance, to limit product quantity for wholesale customers):
- From Dotstore Plugins → Min/Max Quantity in your WordPress dashboard, click on “Add New”.
- Provide a name for the quantity limit rule (this is for internal reference).
- Locate the “Advanced Rules” section and expand the first collapsible tray.
- If you’d like to limit the quantity specific users can buy, select “User” from the left dropdown. Select “User Role” from the dropdown to set quantity limits for users with the user role.
- Next, define the conditions that determine how the rule will function.
- To apply the quantity limit to specific products, choose “Product” from the left dropdown and select the relevant product names in the right dropdown.
- To apply the quantity limit to product categories, choose “Category” from the left dropdown and select the desired product categories in the right dropdown.
- To apply the quantity limit to specific products, choose “Product” from the left dropdown and select the relevant product names in the right dropdown.
- In this section, you can also add additional rules, such as product attributes, shipping methods, stock quantity, and more.
- After defining all conditions, scroll to the “Actions” section to set the quantity requirements: maximum quantity limits, step quantities, and default quantity. You can also change the quantity selector button, as desired.
- Once finished, click “Save changes” at the bottom of the page.
How to customize error messages for orders that don’t meet the quantity limits
- In your WordPress dashboard, go to Dotstore Plugins → Min/Max Quantity → Settings → Messages.
- Here, you can create custom messages to notify customers when their cart doesn’t match the minimum, maximum, or step quantity requirement.
- Click Save Changes after making updates.
- If you’d like to display a table with quantity rules on your cart and product pages, navigate to Dotstore Plugins → Min/Max Quantity → Settings → Display Rules.
- Decide whether the table should appear before or after the “Add to Cart” button on product pages, and optionally, add custom text above the table.
- Once everything is set, hit Save Changes to apply them.
Here’s how the WooCommerce quantity limit looks on the product detail page of a demo WooCommerce store.
And here’s the cart page of the demo WooCommerce store.

FAQs about WooCommerce limit quantity
Here are answers to common questions about WooCommerce quantity limits.
What is the limit of WooCommerce?
WooCommerce, by default, doesn’t impose any limits on product quantities. Out of the box, a customer can order as many units of a product as they want, whether it’s one item or a thousand. As you can imagine, this flexibility works fine for simple stores, but it can create challenges for stores that need to enforce purchase rules for better inventory management, profitability, or customer fairness.
However, you can set up minimum and maximum limits product, category, or store level using the powerful Min/Max Quantity for WooCommerce plugin by The Dotstore.
Does WooCommerce have built-in options to limit product quantity?
WooCommerce doesn’t provide default features for limiting product quantity.
Out of the box, its inventory management feature lets you define stock quantity, enable stock management (to stop sales once inventory reaches zero), and allow or disallow backorders (decide whether customers can order products that are out of stock). But you can’t set minimum, maximum, or step quantity rules per product, per category, per order, or per customer.
Which WooCommerce plugin is best for setting product quantity limits?
Min/Max Quantity for WooCommerce by The Dotstore is a powerful plugin that enables you to set advanced quantity rules to control customers’ purchasing behavior in your online store. With it, you can:
- Set minimum and maximum purchase limits per product, category, or cart.
- Enforce step (increment) quantities to ensure purchases happen in multiples (e.g., 6, 12, 18).
- Apply rules based on user roles, enabling different purchase limits for wholesale and retail customers.
- Configure cart-level restrictions, including total items or order value.
- Customize error messages to provide clear feedback when limits are violated.
How to limit WooCommerce quantity per product attribute
Here’s how to restrict the quantity per product attribute in WooCommerce:
- Install the free or pro version of The Dotstore’s Min/Max Quantity for WooCommerce plugin on your site.
- From within your site’s admin panel, head to Dotstore Plugins → Min/Max Quantity → Manage Rules → Add New.
- Toggle on the “Status” button to enable this quantity rule.
- Enter a name for the rule. Note that this is for your internal tracking and won’t be visible to customers.
- Head to the “Advanced Rules” section and expand the first collapsible panel.
- In the dropdown on the left, select “Product Attributes”
- In the dropdown on the right, choose the specific product attributes where the rule should apply.
- Here, you can also define additional parameters such as user roles, stock levels, or shipping zones.
- Scroll down to the Actions section to configure the quantity rules for these product attributes:
- Minimum and maximum purchase quantities.
- Step or increment values (e.g., order in multiples of 5).
- Default quantity shown on the product page.
- Quantity selector style adjustments (if needed).
- Once all settings are configured, press “Save changes” at the bottom of the page to limit the quantity per product attribute.
How do I limit purchase quantity in WooCommerce?
Follow these steps to set quantity limits at the cart level in WooCommerce:
- Install The Dotstore’s Min/Max Quantity for WooCommerce free or pro plugin on your WooCommerce website.
- Navigate to Dotstore Plugins → Min/Max Quantity → Settings → General in your site’s admin panel.
- Here, you can define the minimum and maximum order quantity for all products in your WooCommerce store in the “Min Order Value” and “Max Order Value“ fields.
- After you’ve defined the appropriate quantity limits, press “Save Changes” at the bottom to apply them.
That’s how to add WooCommerce limit quantity rules!
While there are no built-in options to restrict the product quantity in WooCommerce, you can easily sidestep this limitation with the help of a plugin.
Min/Max Quantity for WooCommerce is a simple-to-use WooCommerce limit quantity plugin that lets you set restrictions on the number of products customers can purchase per order. With it, you can set minimum, maximum, and step increment limits sitewide, per product, and per product category.
This plugin lets you add various criteria to finetune how the quantity limits work, implement quantity restrictions based on user roles, schedule quantity limits for a specific time, customize the error messages, change the style of the quantity selector, and much more.
Get Min/Max Quantity for WooCommerce’s free or pro version and take complete control over your store’s product quantity settings today!
Min/Max Quantity for WooCommerce
Set min/max/step quantities to manage product quantities effectively and enhance the customer experience in your WooCommerce store.
14-day, no-questions-asked money-back guarantee.
