Magento 2 Quantity Increments and Pack Sizes per Product
SKU: QTYINCREMENTS1
- increment per product, category and customer group, e.g. packs of 6 only
- plus and minus at the quantity field jump in whole packs
- hint text and suggestion or rounding up for wrong amounts
- server-side validation in cart, checkout and API
Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.
Magento 2 Quantity Increments: sell items in whole packs only
With the Magento 2 Quantity Increments from Mironsoft you sell items only in the amounts in which they are really packed: only in packs of six, in cartons of ten or on a pallet. The increment applies per product, optionally per category and customer group. The quantity field jumps in whole steps with plus and minus, invalid amounts are explained and, if you wish, rounded up. The interface runs with Alpine.js in the Hyvä theme without an additional library.
Increment per product
For each item you decide in which steps it is ordered, for example 6, 12 or 25 pieces.
Plus and minus in packs
The buttons at the quantity field jump by the increment instead of by one.
Round up instead of reject
If the customer enters 7 instead of 6 or 12, the module suggests the next whole pack.
Magento 2 Quantity Increments per group
Resellers buy by the carton, retail customers in smaller units: the increment follows the customer group.
Hint text
A text like "available in packs of 6 only" appears at the quantity field and in the cart.
Magento 2 Quantity Increments for decimals
Even metre goods or weights can be sold in fixed steps such as 0.5.
Why you should not leave Magento 2 Quantity Increments to chance
Many items cannot be delivered one by one. Bottles come in cartons of six, screws in bags of one hundred, tiles in packs with a fixed number of square metres. If the shop accepts any amount anyway, your warehouse has to open packs, store leftovers and pick partly by hand. That is why merchants look for Magento 2 Quantity Increments that prevent invalid amounts right in the shop.
Magento brings a simple quantity step for this: one increment per product, without customer groups, without own hints and without a suggestion for the next suitable amount. Anyone who types 7 bottles gets only a generic error message. The module extends this function with customer groups, understandable texts and a correction aid.
Magento 2 Quantity Increments on the product: step size and start quantity
On the product you enter the increment, for example 6. The quantity field starts with one pack, the plus and minus buttons jump by six each, and a manual entry is checked for multiples. Optionally the increment also counts as minimum quantity so nobody orders less than one pack. For products with decimal quantities, steps such as 0.5 or 2.5 are possible.
- Increment in the product, empty means default
- Plus and minus jump by the increment
- Increment optionally used as minimum quantity
Magento 2 Quantity Increments per customer group and category
Resellers often buy by the carton, private customers by the single bag. The module allows an own increment per customer group and a default on category level. The order is product, category, global. In a range of thousands of items you maintain only the exceptions while the rule for whole product groups needs a single entry.
- Increment per customer group
- Default per category, product overrides
- Guests configurable like any other group
Magento 2 Quantity Increments with hint text and rounding up
The standard message for an invalid amount explains nothing to the customer. The module shows a text such as "available in packs of 6 only" at the quantity field and suggests the next whole pack after a wrong entry. If you like, wrong amounts are rounded up automatically. The texts contain placeholders for increment and product name and are translatable per store view.
- Hint at the quantity field and in the cart
- Suggestion or automatic rounding up
- Placeholders for increment and product name
Validation in cart, checkout and API orders
The increment applies not only on the product page. The cart, the checkout and orders placed through the API are also checked on the server. If a quantity is changed in the cart, it jumps in whole packs. This protects against circumvention by manipulated requests and ensures that your warehouse never has to pick half packs.
- Server-side check in every order path
- Quantity in the cart jumps in packs
- Message with product name and increment
Where Magento 2 Quantity Increments helps in daily shop work
Typical situations in which only whole packs make sense.
Beverages and food
Bottles come in cartons of six or twelve. With Magento 2 Quantity Increments nobody can order seven bottles.
Fasteners
Screws and wall plugs are packed in bags of fifty or one hundred pieces. The quantity field jumps in these steps.
Tiles and boards
One pack covers a fixed area. Ordering is only allowed in whole packs so nothing has to be torn open.
B2B wholesale
Resellers order cartons or pallets, private customers smaller units. The customer group decides the increment.
Magento 2 Quantity Increments: without and with the module
The difference to the simple default step.
| Topic | Without module | With Mironsoft Quantity Increments |
|---|---|---|
| Increment | One per product | Per product, category and customer group |
| Operation | Plus and minus by one | Jump by the pack size |
| Wrong entry | Generic error message | Suggestion or rounding up with hint text |
| Hint | None | Text at the quantity field and in the cart |
| Maintenance | One product at a time | Category rules and exceptions on the product |
How we set up Magento 2 Quantity Increments for you
The process after you place the order.
Pack data
You send us the increments, preferably as a list with item number and pack size.
Installation
We install the Magento 2 Quantity Increments and store the increments in products and categories.
Quantity field
We adapt the quantity field in the Hyvä theme so that plus, minus and hints match your design.
Texts
We word hints and error messages per store view and decide whether amounts are rounded up.
Test and handover
We test product page, cart, checkout and group changes and show your team how to maintain the rules.
How Magento 2 Quantity Increments differs from minimum and maximum quantity
Magento 2 Quantity Increments defines the steps in which ordering happens. A lower and upper limit per order is set by the Min Max Quantity per Product module instead, and a minimum order value of the cart belongs in a module of its own. Both rules can be combined: at least ten packs, but only in steps of six, is a common constellation.
The interface of Magento 2 Quantity Increments works with Alpine.js in the Hyvä theme without an additional library.
No download — personal setup instead
Quantity Increments 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 increments, customer groups and texts together with you.
Frequently asked questions
Everything important about increments, customer groups, hints and how the purchase works.
How can I set a pack size in Magento 2?
How can I sell items only in packs of six in Magento 2?
Can the increment differ per customer group?
What happens when the customer enters an invalid quantity?
How can I show a hint text about the pack size?
Are decimal quantities possible?
Is the increment also checked in the cart?
Does Magento 2 Quantity Increments work with Hyvä?
How is this different from minimum and maximum quantity?
Can I download and install the module myself?
Magento 2 Quantity Increments – Mironsoft