Title: Sawir Min Max Quantities for WooCommerce
Author: Ricardo Sawir
Published: <strong>July 6, 2026</strong>
Last modified: July 6, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/sawir-min-max-quantities-for-woocommerce.
svg)

# Sawir Min Max Quantities for WooCommerce

 By [Ricardo Sawir](https://profiles.wordpress.org/sawirricardo/)

[Download](https://downloads.wordpress.org/plugin/sawir-min-max-quantities-for-woocommerce.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/sawir-min-max-quantities-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/sawir-min-max-quantities-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/sawir-min-max-quantities-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/sawir-min-max-quantities-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/sawir-min-max-quantities-for-woocommerce/)

## Description

Sawir Min Max Quantities for WooCommerce lets store owners control how many items
customers can buy. Set minimum, maximum, and “group of” multiple quantities per 
product, per variation, per product category, and for the total number of items 
in an order. Rules are enforced on product page quantity inputs, when adding to 
cart, and again on the cart and checkout pages.

Developed by Ricardo Sawir for Sawir Studio LLC.

 * Website: https://sawirstudio.com
 * X: https://x.com/RicardoSawir
 * GitHub: https://github.com/sawirricardo
 * Email: ricardo@sawirstudio.com

#### More plugins by Sawir Studio

 * [Sawir Restock Notifier for WooCommerce](https://wordpress.org/plugins/sawir-restock-notifier-for-woocommerce/)–
   email customers when out-of-stock products return.
 * [Sawir Product Image Zoom for WooCommerce](https://wordpress.org/plugins/sawir-product-image-zoom-for-woocommerce/)–
   image zoom for product galleries.
 * [Sawir Variation Gallery Tools for WooCommerce](https://wordpress.org/plugins/sawir-variation-gallery-tools-woocommerce/)–
   per-variation image galleries.
 * [Sawir Media Folders](https://wordpress.org/plugins/sawir-media-folders/) – organize
   the media library into folders.
 * [Sawir Live Translate](https://wordpress.org/plugins/sawir-live-translate/) –
   live front-end translation tools.

### Features

 * Adds minimum, maximum, and group-of quantity fields to the product Inventory 
   tab.
 * Adds optional minimum, maximum, and group-of overrides to each variation.
 * Adds minimum, maximum, and group-of quantity fields to product categories.
 * Lets category rules apply to the combined cart quantity for that category instead
   of as a per-product fallback.
 * Adds order-level minimum and maximum item limits under WooCommerce > Settings
   > Products > General.
 * Applies a clear precedence: a variation rule wins; otherwise a product rule wins;
   otherwise the most restrictive unchecked category fallback applies.
 * Variations inherit empty fields from their parent product or category fallback.
 * Enforces rules on product page and variation quantity inputs, including step 
   values for group-of multiples.
 * Blocks add-to-cart actions that would exceed a product maximum.
 * Validates all rules on the cart and checkout pages with clear error notices, 
   including multiples such as “must be purchased in multiples of N.”
 * Leaves quantity inputs on the cart page free to reach zero so items can still
   be removed.
 * Requires no configuration to install; rules are optional everywhere.
 * Cleans up all plugin options and metadata when the plugin is uninstalled.

## Installation

 1. Upload the plugin files to `/wp-content/plugins/sawir-min-max-quantities-for-woocommerce`.
 2. Activate the plugin through the WordPress Plugins screen.
 3. Edit a product and set minimum, maximum, or group-of quantities in the Inventory
    tab, or edit a product category and set its quantity fields.
 4. Optionally set order-level item limits under WooCommerce > Settings > Products 
    > General.
 5. Visit a product page and try quantities outside the rules to see them enforced.

## FAQ

### Does this require WooCommerce?

Yes. This plugin is built for WooCommerce products, cart, and checkout hooks.

### What happens when a product has both its own rule and a category rule?

The product rule wins. Category rules only apply to products that have no rule of
their own.

### Can variations have their own rules?

Yes. Each variation can set its own minimum, maximum, and group-of values. Empty
variation fields inherit from the parent product or category fallback.

### What does “group of” mean?

“Group of” requires the quantity to be purchased in multiples of that number. For
example, a group of 6 allows 6, 12, 18, and so on.

### What if a product belongs to multiple categories with rules?

The most restrictive combination applies: the highest minimum, the lowest maximum,
and the shared multiple needed to satisfy group-of rules across its unchecked fallback
categories.

### What does “Apply rules to category total” do?

When enabled on a category, that category’s rules apply to the combined quantity
of all matching cart items. The category no longer acts as a per-product fallback
while that option is enabled.

### Does a parent product maximum limit all variations combined?

Yes, as long as the variations have no rules of their own: their quantities are 
summed and checked against the parent rule. A variation with its own rule is limited
individually instead of counting toward the parent total.

### Why can customers add less than the minimum to the cart?

Minimums and group-of multiples are enforced on the cart and checkout pages so customers
can build up quantity across multiple adds. Checkout stays blocked until the rules
are met. Maximums are blocked immediately at add-to-cart.

### How do I remove a rule?

Leave the field empty (or set it to zero) and save. Empty fields mean no rule.

### Does uninstalling remove the plugin data?

Yes. Deleting the plugin removes its options, product metadata, and category metadata.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sawir Min Max Quantities for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Ricardo Sawir ](https://profiles.wordpress.org/sawirricardo/)

[Translate “Sawir Min Max Quantities for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/sawir-min-max-quantities-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sawir-min-max-quantities-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sawir-min-max-quantities-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sawir-min-max-quantities-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/sawir-min-max-quantities-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Add links to other Sawir Studio plugins.

#### 1.0.0

 * Initial release.
 * Minimum, maximum, and group-of quantity rules per product, per variation, per
   product category, and per order.
 * Optional category-total validation for combined quantities in a category.
 * Enforcement on quantity inputs, add-to-cart, and cart/checkout validation.

## Meta

 *  Version **1.0.1**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [maximum quantity](https://wordpress.org/plugins/tags/maximum-quantity/)[minimum quantity](https://wordpress.org/plugins/tags/minimum-quantity/)
   [quantity rules](https://wordpress.org/plugins/tags/quantity-rules/)[woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/sawir-min-max-quantities-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sawir-min-max-quantities-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sawir-min-max-quantities-for-woocommerce/reviews/)

## Contributors

 *   [ Ricardo Sawir ](https://profiles.wordpress.org/sawirricardo/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sawir-min-max-quantities-for-woocommerce/)