Skip to content

🛒 Magento 2 module to only allow checkout when the number of items in the cart are a multiple of X.

License

Notifications You must be signed in to change notification settings

advocodo/magento2-cart-quantity-multiple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cart Quantity Multiple - Magento 2 Module

License: MIT Latest Stable Version Coding Standard workflow Mess Detector workflow PHPStan workflow

Introduction

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

Screenshots

Frontend view | Backend view

Setup

Magento 2 Open Source or Commerce edition is required.

Composer installation

Run the following composer command:

composer require advocodo/module-cart-quantity-multiple

Setup the module

Run the following magento command:

bin/magento setup:upgrade

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

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

Authors

  • ADVOCODO - Lead - Twitter Follow
  • Mehdi Chaouch - Maintainer - GitHub followers

License

This project is licensed under the MIT License - see the LICENSE details.

Credits

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