How to create a category-specific min/max quantity rule
This guide will walk you through the process of setting up category-specific minimum and maximum quantity rules for your WooCommerce store. These rules help ensure that customers purchase the correct quantity of products within specific categories.
On a Premium store, an Equal to ( = ) category rule can also skip specific products and variations in those categories
In The Article
Benefits
A category-specific rule can help:
- Apply one min and max quantity to every product in the categories you select.
- Stop orders that fall outside those limits.
- Leave selected products or variations out of an Equal to ( = ) rule.
How to create a category-specific quantity rule
Step 1: Open a min/max rule
Go to Dotstore Plugins → Min/Max Quantity and open Manage Rules.
Click Add New, or open an existing rule.

Step 2: Choose the Category condition
Under Conditions, choose Category. This targets product categories rather than individual products.
Step 3: Select the categories
Choose Equal to ( = ) or Not Equal to ( != ), then select the product category or categories the rule should apply to.

Step 4: Exclude specific products
This option is Premium, and it is available only when the condition is Equal to ( = ). It is hidden for Not Equal to ( != ).
Check Exclude Specific Products. In Select products to exclude, search for the products or variations that should skip this rule. The list includes simple products in the selected categories and variations of variable products in those categories.
Select the categories before you search. If you change the categories, any excluded product that is no longer in them is removed.

Step 5: Set the quantity limits
Under Actions, set Min Quantity and Max Quantity for the selected categories. These limits control how many units a customer can buy from that category.
Click Save changes.
Step 6: Check the product page
Open a product in the selected category. The min and max quantity apply to that product. A product or variation you excluded does not use this rule.

Example Use Cases
Bras & Tanks quantity range. If customers should order between 10 and 20 units of any product in Bras & Tanks, set Min Quantity to 10 and Max Quantity to 20. An order below 10 or above 20 is blocked, and the plugin shows an error message.
One product left out of the category limit. If one tank top, or one variation, should not use that 10 to 20 limit, keep Equal to ( = ), check Exclude Specific Products, and select that product or variation. The limit still applies to the other products in Bras & Tanks.
Conclusion
A category rule sets the min and max quantity for the categories you select. With Exclude Specific Products, chosen products and variations in an Equal to ( = ) category can stay outside that limit.
FAQs
1. Where do I find the category rule?
Open Dotstore Plugins → Min/Max Quantity, edit a rule, and set Conditions to Category.
2. When can I exclude products?
Only on a Premium store, and only when the category condition is Equal to ( = ). Not Equal to ( != ) does not show Exclude Specific Products.
3. Can I exclude a variation?
Yes. Select products to exclude lists variations of variable products in the selected categories. An excluded variation does not use this category rule.
4. What happens if the quantity is outside the limit?
The plugin prevents the order from proceeding and displays an error message.