PHPackages                             advocodo/module-cart-quantity-multiple - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. advocodo/module-cart-quantity-multiple

ActiveMagento2-module[Payment Processing](/categories/payments)

advocodo/module-cart-quantity-multiple
======================================

Only allows checkout when cart contents are multiple of X.

1.0.0(5y ago)42[1 issues](https://github.com/advocodo/magento2-cart-quantity-multiple/issues)MITPHPPHP ~7.3.0||~7.4.0

Since May 2Pushed 5y agoCompare

[ Source](https://github.com/advocodo/magento2-cart-quantity-multiple)[ Packagist](https://packagist.org/packages/advocodo/module-cart-quantity-multiple)[ RSS](/packages/advocodo-module-cart-quantity-multiple/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Cart Quantity Multiple - Magento 2 Module
=========================================

[](#cart-quantity-multiple---magento-2-module)

[![License: MIT](https://camo.githubusercontent.com/1d92a9326ea0216a6126fac00f5cc07a163093141844b522cf497cd3f8949b58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6164766f636f646f2f6d6167656e746f322d636172742d7175616e746974792d6d756c7469706c652e7376673f7374796c653d666c61742d737175617265)](./LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/123646d0647d3353107266b32fb995b4311e8ede1d14b6c345853959c00232ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164766f636f646f2f6d6f64756c652d636172742d7175616e746974792d6d756c7469706c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/advocodo/module-cart-quantity-multiple)[![Coding Standard workflow](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/coding-standard.yml/badge.svg?branch=main)](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/coding-standard.yml/badge.svg?branch=main)[![Mess Detector workflow](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/mess-detector.yml/badge.svg?branch=main)](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/mess-detector.yml/badge.svg?branch=main)[![PHPStan workflow](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/advocodo/magento2-cart-quantity-multiple/actions/workflows/phpstan.yml/badge.svg?branch=main)

Introduction
------------

[](#introduction)

This module allows to limit checkout only when the contents of the cart are a multiple of X.

Screenshots
-----------

[](#screenshots)

[Frontend view](screenshots/frontend.png) | [Backend view](screenshots/backend.png)

Setup
-----

[](#setup)

Magento 2 Open Source or Commerce edition is required.

### Composer installation

[](#composer-installation)

Run the following composer command:

```
composer require advocodo/module-cart-quantity-multiple

```

### Setup the module

[](#setup-the-module)

Run the following magento command:

```
bin/magento setup:upgrade

```

Features
--------

[](#features)

Limit cart multiple of X is useful feature when selling beer or wine, where your shipping is in boxes with fixed number of items (usually 6 for wine). It's also possible to exclude some categories from this rule.

Settings
--------

[](#settings)

The configuration for this module is available in `Stores > Configuration > Sales > Cart Quantity Multiple`.

Authors
-------

[](#authors)

- **ADVOCODO** - *Lead* - [![Twitter Follow](https://camo.githubusercontent.com/101556d950571de3d0c2c42faee1566040eab80d9b0cc3acbe969e14abc812e9/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f4144564f434f444f2e7376673f7374796c653d736f6369616c)](https://twitter.com/ADVOCODO)
- **Mehdi Chaouch** - *Maintainer* - [![GitHub followers](https://camo.githubusercontent.com/0888b7ee57e45afe6ecd1335636bb2e42362dba1f0403b2909ff7a6089c97f19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f6c6c6f776572732f6d656864696368616f7563682e7376673f7374796c653d736f6369616c)](https://github.com/mehdichaouch)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](./LICENSE) details.

Credits
-------

[](#credits)

This module was partially designed with the inspiration from these fine folks:

- [ron273/CheckCartQuantityM2](https://github.com/ron273/CheckCartQuantityM2)
- [Extendix\_ValidateCartMultipleQty](https://github.com/extendix/Extendix_ValidateCartMultipleQty)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4086a88e7b69abb148a6cc45977c685e57f311fdef74f01083effcfef2469106?d=identicon)[Mehdi Chaouch](/maintainers/Mehdi%20Chaouch)

---

Top Contributors

[![mehdichaouch](https://avatars.githubusercontent.com/u/861701?v=4)](https://github.com/mehdichaouch "mehdichaouch (1 commits)")

---

Tags

cartcheckoutmagentomagento-2magento-extensionmagento-modulemagento2magento2-extensionmagento2-extension-freemagento2-modulemagento2-module-freephpmagentocartcheckoutmultiplemagento2

### Embed Badge

![Health badge](/badges/advocodo-module-cart-quantity-multiple/health.svg)

```
[![Health](https://phpackages.com/badges/advocodo-module-cart-quantity-multiple/health.svg)](https://phpackages.com/packages/advocodo-module-cart-quantity-multiple)
```

###  Alternatives

[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
