Part of the Commerce ecosystem · 487 projects
This module allows you to set minimum or maximum purchase quantities for product variations in Drupal Commerce. It helps enforce these limits during the add-to-cart process and on the shopping cart page, providing feedback to customers if requirements aren't met.
Commerce Product Limits lets you add minimum or maximum purchase quantities to product variations in Drupal Commerce.
To use this feature, enable the module, edit the product variation types you would like to add limits to, and enable the "Minimum quantity" or "Maximum quantity" trait as need be. Update any product variation that should have a limit applied to it.
This module defines an Availability Checker that Commerce Core's Availability Manager uses to ensure any given order item is "available" to purchase as is. This system is used by other modules to enforce availability dates or stock checks, and this module is using it to determine whether or not it's available for purchase in the given quantity.
Customers will either see a message upon Add to Cart form submission indicating they have not met the minimum or maximum requirements. On the core Shopping Cart form, the quantity fields are altered to use HTML's min / max attributes for basic client-side validation.
* Not compatible with Commerce Cart Flyout or Add to Cart forms that do not combine similar products into the same order item by incrementing the existing item's quantity.
Looking for Drupal Commerce support?
- Hire the project maintainers:
- Centarro offers Drupal Commerce Support and Development services, ranging from a flat monthly fee for maintenance support (with optional development retainers) to full site architecture and development.
- Community support options:
- Over 2,000 developers participate in our two support channels on a best-effort basis, Drupal Answers and Drupal Slack (channel: #commerce).
Ask your assistant about Commerce Product Limits
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Commerce Core commerce_cart
- Commerce Core commerce_product
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Commerce ecosystem
Most installed first