Title: Limit Quantity for WooCommerce
Author: imemine
Published: <strong>Novambor 23, 2017</strong>
Last modified: Oktubor 6, 2026

---

Search plugins

![](https://ps.w.org/limit-quantity-for-woocommerce/assets/icon-256x256.jpg?rev=
2778607)

# Limit Quantity for WooCommerce

 By [imemine](https://profiles.wordpress.org/imemine/)

[Download](https://downloads.wordpress.org/plugin/limit-quantity-for-woocommerce.2.0.1.zip)

 * [Details](https://rhg.wordpress.org/plugins/limit-quantity-for-woocommerce/#description)
 * [Reviews](https://rhg.wordpress.org/plugins/limit-quantity-for-woocommerce/#reviews)
 *  [Installation](https://rhg.wordpress.org/plugins/limit-quantity-for-woocommerce/#installation)
 * [Development](https://rhg.wordpress.org/plugins/limit-quantity-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/limit-quantity-for-woocommerce/)

## Description

Limit Quantity for WooCommerce lets you set maximum purchase limits for individual
WooCommerce products. Add a field in the product edit screen to define the maximum
allowed quantity per product.

### Features

 * Define custom maximum purchase quantities for individual products.
 * Server-side validation on add to cart and cart updates.
 * Automatically reduce cart quantities exceeding the limit.
 * Display clear notices for adjusted cart quantities.
 * Fully compatible with WooCommerce High-Performance Order Storage (HPOS).

## Installation

 1. Upload `limit-quantity-for-woocommerce` to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Edit a WooCommerce product and set a maximum quantity in the **Inventory** section.

## FAQ

### Does this plugin work with variable products?

Currently, this plugin does not support variable products.

### What happens if a customer already has items in their cart exceeding the limit?

The plugin automatically reduces the quantity in the cart to the maximum allowed
and displays a notice to the customer.

### Does this plugin limit total cart quantities?

No, this plugin applies limits per product. For cart-wide limits, use other dedicated
plugins.

### Is this plugin compatible with High-Performance Order Storage (HPOS)?

Yes, the plugin is fully compatible with WooCommerce High-Performance Order Storage(
HPOS).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Limit Quantity for WooCommerce” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ imemine ](https://profiles.wordpress.org/imemine/)

[Translate “Limit Quantity for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/limit-quantity-for-woocommerce)

### Interested in development?

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

## Changelog

#### 2.0.1

 * Fix: Resolved empty maximum quantity bug where unconfigured products received
   an invalid maximum attribute.
 * Fix: Added server-side validation during add-to-cart and cart update to enforce
   maximum purchase quantities.
 * Fix: Prevented unintentional interference with variable products and variation
   quantity inputs.
 * Performance: Scoped admin JavaScript strictly to product edit screens instead
   of enqueuing globally.
 * Compatibility: Added WooCommerce High-Performance Order Storage (HPOS) compatibility
   declaration.
 * Improvement: Enhanced input sanitization and validation for product maximum quantity
   limits.

#### 2.0

 * Improved security with better nonce and sanitization checks.
 * Enhanced frontend notices for better user experience.
 * Fixed JavaScript issues and improved compatibility with jQuery.

#### 1.4.2

 * Initial release.

## Meta

 *  Version **2.0.1**
 *  Last updated **1 háfta óll ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 5.6 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/limit-quantity-for-woocommerce/)
 * Tags
 * [cart](https://rhg.wordpress.org/plugins/tags/cart/)[e-commerce](https://rhg.wordpress.org/plugins/tags/e-commerce/)
   [limit](https://rhg.wordpress.org/plugins/tags/limit/)[quantity](https://rhg.wordpress.org/plugins/tags/quantity/)
   [woocommerce](https://rhg.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://rhg.wordpress.org/plugins/limit-quantity-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/limit-quantity-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/limit-quantity-for-woocommerce/reviews/)

## Contributors

 *   [ imemine ](https://profiles.wordpress.org/imemine/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/limit-quantity-for-woocommerce/)