Minimum And Maximum Quantity per Product

Minimum / Maximum Quantity per Product is a WooCommerce extension that allows store owners to enforce minimum and maximum purchase quantities using a powerful rule-based system.

It supports:

  • Product-level quantity limits
  • Global quantity rules
  • Category-based rules
  • User role-based rules
  • Product type rules
  • Priority-based rule evaluation

This plugin is ideal for wholesale stores, bulk sellers, B2B websites, and inventory-controlled shops.

System Requirements

↑ Back to top

Before installing, ensure your website meets the following requirements:

RequirementMinimum Version
WordPress5.8+
WooCommerce6.0+
PHP7.4+

Plugin Location (Admin Menu)

↑ Back to top

After activation, the plugin settings are available at:

WooCommerce → Quantity Rules

This is the main control panel for creating and managing quantity rules.

Rule Types Explained

↑ Back to top

1. Global Rule

↑ Back to top

Location: WooCommerce → Quantity Rules
Applies To: All products

Example Use Case:

Default store limit for all products

2. Category Rule

↑ Back to top

Location: WooCommerce → Quantity Rules
Applies To: Selected product categories

Example Use Case:

  • Electronics → Max 2
  • Accessories → Max 10

3. User Role Rule

↑ Back to top

Location: WooCommerce → Quantity Rules
Applies To: Selected user roles

Example Use Case:

  • Wholesale customers → Min 25, Max 500

4. Product Type Rule

↑ Back to top

Location: WooCommerce → Quantity Rules
Applies To:

  • Simple products
  • Variable products
  • Grouped products

Rule Priority System

↑ Back to top

Each rule has a Priority value.

  • Lower number = higher priority
  • Rules are evaluated from lowest number to highest
  • First matching rule is applied

Priority Order

↑ Back to top
  1. Product-level quantity settings
  2. Rule-based limits (by priority)
  3. Global fallback rules

Product-Level Quantity Settings

↑ Back to top

Product-level settings override all rules.

How to Set Product-Level Limits

↑ Back to top

Update the product

Go to WooCommerce → Products

Edit a product: Open Product Data → Inventory

Set: Minimum Quantity | Maximum Quantity

Frontend Behavior

↑ Back to top

Product Page

↑ Back to top
  • Quantity input respects min/max limits
  • Users cannot select invalid values
  • Limits are visible immediately

Related Products

Offer add-ons like gift wrapping, special messages or other special options for your products.

WooCommerce Subscriptions is a WooCommerce extension that lets customers subscribe to your products or services and pay on a weekly,...

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.