Beschrijving
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.
Functies
- 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).
Installatie
- Upload
limit-quantity-for-woocommerceto the/wp-content/plugins/directory. - Activeer de plugin via het Plugins menu in WordPress.
- Edit a WooCommerce product and set a maximum quantity in the Inventory section.
FAQ
-
Werkt de plugin met variabele producten?
-
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).
Beoordelingen
Er zijn geen beoordelingen voor deze plugin.
Bijdragers & ontwikkelaars
“Limit Quantity for WooCommerce” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Limit Quantity for WooCommerce” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via 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
- Initiële release.