=== TwinCart Product Quantity Limits ===
Contributors: ddoukas, Twinnet
Tags: woocommerce, quantity, min max, wholesale, order limits
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 11.0.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Short Description: Set minimum and maximum purchase limits per product or variation in WooCommerce for better order control.

== Description ==

TwinCart Product Quantity Limits allows you to define strict order volume rules for your store. Ensure profitability and logistical efficiency by controlling exactly how many units of a product a customer can purchase.

= Features =
* Define minimum and maximum order quantities per individual product.
* Set independent minimum and maximum quantities per product variation.
* For variable products, the product-level minimum and maximum apply to the combined total quantity across all selected variations, so customers can mix and match variations to reach the required amount.
* Real-time validation notices on the product page, cart, and checkout.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/twincart-product-quantity-limits` directory.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Set the minimum and maximum quantity fields directly on each Product edit screen (and, for variable products, on each Variation) under the Inventory tab.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active for this plugin to work.

= If I set a minimum/maximum on a variable product, does it apply to each variation separately? =

No. The product-level minimum and maximum apply to the combined total quantity across all variations of that product in the order. For example, with a minimum of 3, a customer could order 2 units of one variation and 1 unit of another to reach the minimum. If you also set a minimum or maximum on a specific variation, that value applies only to that single variation, independently of the others.

== Changelog ==

= 1.0.0 (2026-08-27) =
* Initial release.
* Added product-level minimum and maximum quantity rules, enforced as a combined total across all variations.
* Added independent minimum and maximum quantity rules per product variation.
* Integrated real-time validation and error messaging on the product, cart, and checkout pages.
* Declared compatibility with High-Performance Order Storage (HPOS).

== WC Compatibility ==

* HPOS Compatible: Yes
