This module allows to limit checkout only when the contents of the cart are a multiple of X.
Magento 2 Open Source or Commerce edition is required.
Run the following composer command:
composer require advocodo/module-cart-quantity-multiple
Run the following magento command:
bin/magento setup:upgrade
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.
The configuration for this module is available in Stores > Configuration > Sales > Cart Quantity Multiple
.
This project is licensed under the MIT License - see the LICENSE details.
This module was partially designed with the inspiration from these fine folks: