Table of Contents
Searching for how to modify the WooCommerce quantity input options in your online store? In this in-depth tutorial, I’ll walk you through the steps to enforce minimum purchase rules, define maximum quantity limits, allow customers to buy in specific quantity increments, adjust the default quantity, and change the style of the quantity selector button.
If you’re looking for a quick and easy way to modify your store’s quantity input settings, this guide has your back.
Here, I’ll show you two different ways to customize the quantity input in WooCommerce. By the end of this tutorial, you’ll be able to:
- Customize the value of the standard quantity input field. Think: change the default quantity, set minimum and maximum quantity limits, and adjust the step quantity increment.
- Change the style of the WooCommerce quantity input box to customize the interface through which customers can select product quantities when shopping in your online store.
The best part? Everything takes less than ten minutes to set up from start to finish. Plus, there’s no coding involved and it’s 100% beginner-friendly.
WooCommerce’s default quantity input options are pretty basic, so we’ll need to use the free or premium version of the advanced Min/Max Quantity for WooCommerce plugin to customize them.
Ready? First things first, let’s understand how the standard WooCommerce quantity input options actually work, and why you may need to further modify them.
A brief rundown of the built-in WooCommerce quantity input settings
Out of the box, WooCommerce provides a simple quantity input field in the form of a small number box or dropdown menu on product detail pages. Customers can then select the quantity they want to purchase by using a plus/minus button or manually typing a number.
Every product starts with a default minimum quantity of “1”. This means customers must add at least one item to their shopping carts. There is no default maximum quantity, so customers can enter any number unless you specifically define an upper limit e.g. for better stock management or to enforce bulk purchasing rules.
The default step increment is also “1”. This allows customers to increase the quantity of each product in their shopping carts by one unit at a time. Clicking the “+” button will increase the value from 1 to 2, then to 3, and so on.
WooCommerce accepts only positive whole numbers and ensures customers can’t order products in negative or fractional quantities. It also respects stock availability and prevents customers from ordering more than what’s in stock. So, for example, if only 8 units of a specific item are in stock, they can’t add 10 to their cart.
When customers adjust the number of items in their shopping carts, it will automatically update to reflect the new totals.
Fundamental limitations of the default WooCommerce quantity input settings
Although WooCommerce’s standard quantity input settings are functional, they are quite limited in flexibility. Here’s where they fall short:
- You can’t set minimum or maximum limits. There are no native options to enforce minimum or maximum purchase quantities. For example, you can’t make it mandatory for customers to buy at least 2 units of a product or cap their purchase at 10 products.
- You can’t offer step quantity increments. The default setup allows customers to choose any integer quantity, but it doesn’t let them enforce intervals like multiples of 5 or 10. This isn’t suitable for wholesale stores or stores that require customers to buy in specific pack sizes.
- There is no way to add product-specific rules. It doesn’t support different quantity settings for individual products. For example, if one product requires a minimum quantity of 5 while others don’t, you can’t enforce that rule.
- It doesn’t include the option to modify the quantity input selector. By default, the input field doesn’t allow you to change the default style of the WooCommerce quantity input box to predefined quantity options, which can simplify product selection and provide a more user-friendly experience overall.
- There is no way to create product bundles. It doesn’t natively support fixed quantities for bundled products or curated sets. For example, if you want to sell gift boxes containing exactly 3 products, the default settings won’t enforce this.
- There’s a high possibility of manual input errors. Since customers can manually type any number, they may accidentally enter invalid quantities, (like 1.5 or a number that exceeds the number of available units of a product). This can lead to confusion or a higher number of abandoned carts.
Why customize WooCommerce quantity input options?
Here are some common benefits of adapting quantity input options in your WooCommerce store.
- It may be required for custom products. Stores that offer custom-built or personalized products tend to require strict quantity controls. For example, a store that sells customized wedding invitations might only accept orders of at least 50 units to account for production costs. Defining a minimum quantity guarantees that all orders meet this requirement from the get-go and without unnecessary back-and-forth communication.
- It can help boost your average order value. Setting the minimum order quantity and/or step quantity increment higher than “1” subtly nudges shoppers to spend more on each order. You can even pair quantity requirements with bulk price incentives to make them even more effective.
- It can help facilitate stock management. Controlling how much of a product customers can purchase per order helps manage inventory more effectively. A good example is if you sell products in fixed quantities, such as cartons of bottled water, allowing customers to purchase only in multiples of a full case (e.g., 6, 12, 24) helps prevent issues with logistics, storage, and shipping.
- It supports bulk sales. Stores that cater to B2B customers or sell wholesale need to set higher minimum quantities, increments for bulk orders, or tiered pricing to support large transactions and keep their operations efficient.
- It enhances customers’ experience. Designing WooCommerce’s quantity input settings to match your specific store’s requirements can help reduce friction and make the buying process more intuitive. For example, if you sell building materials, customers who want to purchase floor tiles may appreciate the option to select from pre-defined quantity options that match common project sizes (e.g., packs of 10 or 20 tiles) rather than having to add them one buy one.
The best WooCommerce plugin to modify quantity input settings

Min/Max Quantity for WooCommerce is a simple-to-use plugin that enables you to customize your store’s quantity input settings. Available in both free and premium versions, it allows you to enforce minimum purchase rules, set maximum limits, allow customers to purchase in specific increments, modify the default quantity, and even change the quantity selector style.
Min/Max Quantity for WooCommerce is incredibly flexible and works great on various types of stores. With it, you can modify WooCommerce quantity input settings:
- Storewide, i.e. all the products in your online store.
- Category-wise, i.e. particular product categories in your online store.
- Per product, i.e. particular simple and/or variable product).
Key features of the Min/Max Quantity for WooCommerce plugin
- It gives complete control over min/max quantities. It allows you to set both minimum and maximum purchase quantities at the product (including simple products and variations), category, or global level. After setting category-wise or storewide limits, you can exclude specific products or categories as needed.
- It lets you set step quantity rules. Enforcing step quantity rules requires customers to only purchase products in specific increments. If, for example, you sell drinks in cases of 12, it ensures customers can only select quantities like 12, 24, or 36. This avoids confusing shoppers and simplifies the ordering process for bulk or wholesale items.
- Set dynamic criteria for quantity options. You can create highly specific quantity rules based on product categories, individual products, user roles, cart totals, stock availability, and other dynamic conditions.
- You can set quantity rules based on user roles. Its role-based functionality empowers you to set different quantity rules for different customer groups so you can cater to multiple types of customers from a single store. A common example is hybrid wholesale and retail stores. For example, retail customers might have a minimum purchase quantity of 1 and a maximum of 20. Whereas, wholesale customers might have a minimum purchase quantity of a minimum of 50 and no upper limit.
- You can set cart-level rules. Together with setting rules for individual products and product categories, you can also set cart-level quantity restrictions. For example, you can require wholesale orders to meet a total cart quantity of at least 30 units. This is particularly useful for stores that need customers to meet specific order thresholds to qualify for bulk discounts or free shipping.
- It lets you tailor error messages. It is inevitable that some customers may not immediately meet your product quantity thresholds. For example, if you’d set a minimum quantity of 7, some customers may initially try to complete checkout with just 4 products in their carts. This plugin enables you to customize the error messages in line with your store’s tone and branding to guide customers when their selection doesn’t meet the quantity rules.
- Showcase quantity input options on product detail pages. It lets you (optionally) add text that displays quantity options upfront on individual product pages. This keeps customers informed about your store’s purchase quantity limits before they add items to their shopping carts. This can help build trust with customers and lower the probability that they later abandon their carts due to confusion.
- Schedule changes to quantity input options. This quantity management plugin lets you define start and end date ranges to modify quantity input options for a specific period, such as, during flash sales or new product launches. Once the scheduled period ends, it will automatically deactivate and return to its original options – no manual update needed.
A brief note: Min/Max Quantity for WooCommerce is a robust plugin that gives you granular control over the quantity input options in your online store. In addition, it enables you to set a 1-item per order limit, hide the proceed to checkout button for orders that don’t match your store’s set quantity requirements, and much more. Check out a full list of its features here.
How to customize WooCommerce quantity input settings
In this section, I’ll walk you through the steps to modify the quantity input options to suit your WooCommerce store’s specific requirements. To begin, get the free or premium version of the Min/Max Quantity for WooCommerce plugin.
Change WooCommerce quantity input settings storewide
Follow these steps to configure minimum and maximum quantity rules across all products in your entire WooCommerce store:
- Go to your WordPress admin dashboard and navigate to Dotstore Plugins → Min/Max Quantity → Settings → General.
- Here, you can define the WooCommerce minimum and maximum order quantity limits that will apply to all products in your store.
- After making your changes, click Save Changes at the bottom of the page.
Change WooCommerce quantity input settings for specific products and categories
Follow these steps to set up minimum, maximum, and step quantity rules, adjust the default quantity, and customize the WooCommerce quantity input style:
- Install the free or premium version of the Min/Max Quantity for WooCommerce plugin on your site.
- In your WordPress admin dashboard, head directly to Dotstore Plugins → Min/Max Quantity and click on the Add New button.
- Give the rule a name for easy internal reference.
- Next, navigate to the Advanced Rules section within the Edit page and expand the first collapsible tray.
- To define the conditions for applying the rule:
- To apply the rule to specific products, pick Product from the left dropdown. Then enter the product names in the right dropdown.
- To apply the rule to product categories, pick Category from the left dropdown. Then enter the relevant categories in the right input field.
- To apply the rule to specific products, pick Product from the left dropdown. Then enter the product names in the right dropdown.
- Now, add additional conditions, such as user roles, shipping zones, shipping methods, stock levels, etc., as needed.
- In the Actions section, change WooCommerce quantity input settings as needed. You can modify the minimum quantity, maximum quantities, step quantities, and default values, along with your preferred WooCommerce quantity input style.
- Once all settings are configured, press the Save Changes button from the bottom of the page.
Additional settings
How to modify error messages for customers who don’t meet the updated quantity input options
- In your site’s admin panel, navigate to Dotstore Plugins → Min/Max Quantity → Settings → Messages.
- From here, you can amend the notifications shown to customers when their quantity input selections don’t align with the updated options.
- Once you’ve amended the messages, click Save Changes to apply them.
How to showcase modified quantity options on the individual product and cart pages
- From your site’s admin panel, navigate to Dotstore Plugins → Min/Max Quantity → Settings → Display Rules.
- Choose whether to position the table above or below the “Add to Cart” button on product detail pages. Optionally, you can also add a custom heading or text to appear above the table.
- When you’re finished, click Save Changes to finalize the settings.
And you’re set! Here’s a quick preview of the product detail page of a demo WooCommerce store showing the updated WooCommerce quantity input options.

Here’s a preview of the cart page of the demo WooCommerce store showing the updated WooCommerce quantity input options.

Customize the WooCommerce quantity input settings today
In this tutorial, I’ve shown you step-by-step two different methods to modify the quantity input in your WooCommerce store. If you’ve followed the steps laid out, you’ll have been able to:
- Customize the value of the standard quantity input field to set minimum and maximum quantity limits, adjust the default quantity, and modify the step quantity increment value.
- Change the style of the quantity input field to customize the interface through which customers can select product quantities when shopping in your online store.
These customization options aren’t built into WooCommerce by default but you can easily set them up with the Min/Max Quantity for WooCommerce plugin. It is flexible, simple to use, and enables you to modify your store’s quantity input settings globally, per category, and on a per-product level.
Get started with the free or premium version of Min/Max Quantity for WooCommerce and modify your WooCommerce store’s quantity input settings in ten minutes or less!