Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Min Max Quantity per Product and Customer Group

Magento 2 Extension Hyvä Ready Magento 2.4.x

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
Auf Lager
€99.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 features

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 limit quantities

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.

01Minimum and maximum

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
Edit product › Quantity limits
Minimum quantity
10 (example)
Maximum quantity
200 (example)
Applies to
all customer groups
Quantity limits › Customer groups
Wholesalefrom 10 to 500 (example)
Retailfrom 1 to 20 (example)
Without an entry the category rule applies
02Customer groups

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
03Category rules

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
Catalog › Category › Quantity limits
Category
Small parts (example)
Minimum quantity
50
Products affected
all, exceptions on the product
Stores › Configuration › Mironsoft › Min Max Quantity
Check in cart
yes
Correct quantity automatically
no (example)
Message text
per store view
04Cart and checkout

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
Use cases

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.

Comparison

Magento 2 Min Max Quantity: without and with the module

The difference to the global default setting.

TopicWithout moduleWith Mironsoft Min Max Quantity
ScopeGlobal for all productsPer product, category, customer group and store view
HintOnly in the cartRight at the quantity field
MaintenanceOne by one, by handCategory rules and mass action
ValidationBrowser or noneServer-side in cart, checkout and API
CorrectionOrder is rejectedOptional automatic adjustment of the quantity
Setup

How we set up Magento 2 Min Max Quantity for you

The process after you place the order.

1

Collect rules

You tell us the items, categories and customer groups with quantity limits, a list is fine.

2

Installation

We install the Magento 2 Min Max Quantity and transfer your limits into products and categories.

3

Quantity field

We adapt the quantity field in the Hyvä theme so that hints and start value match your design.

4

Messages

We word the texts per store view and decide whether quantities are corrected automatically.

5

Test and handover

We test product page, cart, checkout and group changes and show your team the mass action.

Differences

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.

05How the purchase works

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.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

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?
With Magento 2 Min Max Quantity you open the product, switch to the Quantity limits tab and enter minimum and maximum. Empty fields mean no limit.
How can I set a maximum quantity per order in Magento 2?
In the same tab you enter the maximum. Magento 2 Min Max Quantity then applies everywhere. The quantity field and the server-side check then prevent larger quantities in the cart.
Can I set quantity limits per customer group?
Yes. For every customer group, guests included, a separate minimum and maximum can be set. Without an entry the next rule in the order applies.
Which rule applies when product and category differ?
The product overrides the category and the category overrides the global setting. In the admin you can see which limit currently applies.
How can I set quantity limits for many products at once in Magento 2?
You set Magento 2 Min Max Quantity with a mass action in the product grid or with a rule on category level.
Is the quantity also checked in the cart?
Yes, on the server in the cart, in the checkout and for orders through the API, not only on the product page.
Can the quantity be adjusted automatically?
Optionally. Instead of rejecting the order the module corrects the quantity to the next allowed number and shows a hint.
Does Magento 2 Min Max Quantity work with Hyvä?
Yes, the quantity field is built with Alpine.js and needs no additional library.
What is the difference from the minimum order value?
The minimum order value looks at the amount of the cart, this module at the piece count of one item.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module for you in your shop.
Write Your Own Review
You're reviewing: Magento 2 Min Max Quantity per Product – Mironsoft
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Min Max Quantity per Product – Mironsoft

Magento 2 Min Max Quantity per Product – Mironsoft

€99.00