Magento 2 Min Max Quantity per Product and Customer Group
SKU: MINMAXQTYPRODUCT1
- minimum and maximum quantity per product, category and customer group
- quantity field shows the limits and blocks invalid entries
- server-side validation in cart, checkout and API
- mass action in the product grid, texts per store view
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Min Max Quantity: control order quantities where they really apply
With the Magento 2 Min Max Quantity from Mironsoft you define for every product how many pieces a customer may put into the cart at the very least and at the very most. The limits apply per customer group and per store view if you wish, with defaults on category level for the whole catalogue. The quantity field on the product page shows the limits before the click, and cart and checkout check them again. The interface runs with Alpine.js in the Hyvä theme.
Minimum quantity
Per product you decide from how many pieces ordering is allowed, for example for cuttings or small parts.
Maximum quantity
Limit scarce or strictly rationed items per order so that nobody buys up the stock.
Per customer group
Resellers order from ten pieces, retail customers from one: the limits differ per group.
Category default
A rule on category level applies to all products in it, single items override it.
Hint at the quantity field
The quantity field shows minimum and maximum and blocks entries outside the limits.
Magento 2 Min Max Quantity in the cart
Cart and checkout check again, not only the product page.
Why Magento 2 Min Max Quantity is more than a global rule
Magento knows a smallest and a largest quantity allowed in the shopping cart in its inventory settings. That setting applies globally or per customer group to all products together. As soon as your range is mixed it is not enough any more: a screw is only sold from one hundred pieces, a limited item only twice per customer, and a sample should be orderable exactly once for new customers. That is why merchants look for a Magento 2 Min Max Quantity that can be set per item.
Without Magento 2 Min Max Quantity the familiar problems appear: tiny orders whose shipping costs more than the goods, sold-out promotion items after one single bulk order, and support questions because the customer learns the minimum only in the cart. The limits belong where the customer chooses the quantity.
Magento 2 Min Max Quantity in a dedicated product tab
The product gets an additional tab for the quantity limits. There you enter minimum and maximum, each left empty for no limit. The quantity field on the product page takes over the values and starts with the minimum as default. If the customer enters less or more, the hint appears right at the field and the button stays disabled until the quantity fits.
- Own tab in the product, empty means no limit
- Quantity field starts with the minimum quantity
- Hint at the field, button disabled until the quantity fits
Magento 2 Min Max Quantity per customer group and store view
For every customer group a separate limit can be set. Resellers order in pack sizes while retail customers buy single pieces. The same logic applies per store view in case a shop serves several countries or brands. If a group has no entry, the category rule or the global setting applies. The order is visible in the admin so that your team can follow which limit currently applies.
- Own limits per customer group and store view
- Order: product, category, global
- Guest group treated like any other group
Magento 2 Min Max Quantity by category rule and bulk maintenance
Whoever has hundreds of items does not maintain limits one by one. A rule on category level applies to all products in it, an entry on the product overrides it. For the catalogue there is a mass action in the product grid with which you set or remove limits for a selection. Maintenance stays manageable and traceable even for large ranges.
- Default per category, product overrides
- Mass action in the product grid
- Remove limits for a selection
Magento 2 Min Max Quantity validated in cart, checkout and API
The limits are checked not only in the browser but also on the server. This way they apply in the cart, in the checkout and for orders placed through the API. The message names the affected product and the allowed quantity. Optionally the module corrects the quantity to the next allowed number instead of rejecting the order. You maintain the texts per store view.
- Server-side check, also for API orders
- Message with product name and allowed quantity
- Optional automatic correction to the next allowed quantity
Where Magento 2 Min Max Quantity helps in daily shop work
Typical situations in which a fixed quantity limit creates order.
Small parts and consumables
With Magento 2 Min Max Quantity, screws, labels or filters are only sold from a sensible number of pieces. The minimum is shown on the product and not just in the cart.
Limited promotion items
An offer item is limited to two pieces per order. It reaches more customers instead of being emptied by a single buyer.
B2B and B2C in one shop
Resellers order from one pack size, retail customers single pieces. The customer group decides which limit applies.
Samples
A sample may enter the cart only once per order. The module prevents more than one automatically.
Magento 2 Min Max Quantity: without and with the module
The difference to the global default setting.
| Topic | Without module | With Mironsoft Min Max Quantity |
|---|---|---|
| Scope | Global for all products | Per product, category, customer group and store view |
| Hint | Only in the cart | Right at the quantity field |
| Maintenance | One by one, by hand | Category rules and mass action |
| Validation | Browser or none | Server-side in cart, checkout and API |
| Correction | Order is rejected | Optional automatic adjustment of the quantity |
How we set up Magento 2 Min Max Quantity for you
The process after you place the order.
Collect rules
You tell us the items, categories and customer groups with quantity limits, a list is fine.
Installation
We install the Magento 2 Min Max Quantity and transfer your limits into products and categories.
Quantity field
We adapt the quantity field in the Hyvä theme so that hints and start value match your design.
Messages
We word the texts per store view and decide whether quantities are corrected automatically.
Test and handover
We test product page, cart, checkout and group changes and show your team the mass action.
How Magento 2 Min Max Quantity differs from minimum order value and grouped products
Magento 2 Min Max Quantity limits the piece count of a single item. The minimum order value of the Minimum Order Amount module, in contrast, looks at the total of the cart, and the quantity limit for grouped products governs the sum across several parts of a set. Staggering quantities in pack sizes, for example only in packs of six, is handled by the Quantity Increments module.
All modules can be combined with Magento 2 Min Max Quantity. The quantity field works with Alpine.js in the Hyvä theme without an additional library.
No download — personal setup instead
Min Max Quantity is not listed here as a ready-made download file for self-installation. The purchase is a service commission: we get in touch after the purchase, install the module in your shop and agree on limits, customer groups and messages together with you.
Frequently asked questions
Everything important about limits, customer groups, validation and how the purchase works.
How can I set a minimum order quantity per product in Magento 2?
How can I set a maximum quantity per order in Magento 2?
Can I set quantity limits per customer group?
Which rule applies when product and category differ?
How can I set quantity limits for many products at once in Magento 2?
Is the quantity also checked in the cart?
Can the quantity be adjusted automatically?
Does Magento 2 Min Max Quantity work with Hyvä?
What is the difference from the minimum order value?
Can I download and install the module myself?
Magento 2 Min Max Quantity per Product – Mironsoft