advocodo/module-cart-quantity-multiple

Only allows checkout when cart contents are multiple of X.

1.0.0 2021-05-02 21:04 UTC

This package is auto-updated.

Last update: 2024-09-29 06:02:59 UTC


README

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: