Limit Cart Quantity extension icon

Limit Cart Quantity for Magento 2

Control how many items a customer can carry in the shopping cart at once, with clear messages when a limit is reached.

Checkout & Cart Magento 2.4.x Open Source & Adobe Commerce Adobe Marketplace approved $29 USD

Why choose Limit Cart Quantity?

Limit Cart Quantity sets a minimum and maximum number of items a customer can have in the cart, globally or per customer group. The limits are checked when products are added (including AJAX add-to-cart), on the cart page, at checkout and on multi-address checkout, so they cannot be bypassed. Error messages are editable and can differ per store view.

Limit Cart Quantity: General configuration (screenshot 1 of 6)Limit Cart Quantity: Customer groups (screenshot 2 of 6)Limit Cart Quantity: Max exceeded (screenshot 3 of 6)Limit Cart Quantity: Min enforcement (screenshot 4 of 6)Limit Cart Quantity: AJAX block (screenshot 5 of 6)Limit Cart Quantity: Checkout hidden (screenshot 6 of 6)
1 / 6

Key features

  • Global Minimum Cart Quantity
  • Global Maximum Cart Quantity
  • Customer Group Quantity Overrides
  • AJAX Add-to-Cart Protection
  • Cart-Page Validation Notice
  • Checkout Button Control
  • Checkout Submission Guard
  • Multi-Shipping Checkout Protection
  • Customisable Error Messages
  • Store-View Scope
  • Enable / Disable without Uninstalling
  • Zero Core Code Modifications

At a glance

Module nameMage2Expert_LimitCart
Composer packagemage2expert/module-limit-cart
SettingsStores › Configuration › Magento Expert › Limit Cart Quantity (6 options)
Per store view settingsYes
APINo custom endpoints (uses Magento's standard APIs)
PHP8.1, 8.2, 8.3, 8.4, 8.5

Installation

After purchasing on the Adobe Commerce Marketplace, install it with Composer using your Marketplace access keys:

composer require mage2expert/module-limit-cart
bin/magento module:enable Mage2Expert_LimitCart
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Skip setup:di:compile and static-content:deploy if your store runs in developer mode.

Configuration reference

All 6 options under Stores › Configuration › Magento Expert › Limit Cart Quantity, grouped as they appear in the admin.

General Settings 5
SettingDescription
Enable ModuleEnable or disable the Mage2Expert Limit Cart Quantity module.
Minimum Cart QuantityMinimum total item quantity required in the cart before checkout. Leave empty to disable.
Maximum Cart QuantityMaximum total item quantity allowed in the cart. Leave empty to disable.
Minimum Quantity Error MessageError message shown when cart does not meet minimum quantity. Use {{min_qty}} as placeholder for the configured value.
Maximum Quantity Error MessageError message shown when cart exceeds maximum quantity. Use {{max_qty}} as placeholder for the configured value.
Customer Group Limits 1
SettingDescription
Customer Group Quantity Limits 

Frequently asked questions

How much does Limit Cart Quantity cost?
Limit Cart Quantity costs $29 USD as a one-off purchase on the Adobe Commerce Marketplace.
Which Magento and PHP versions are supported?
Magento Open Source and Adobe Commerce 2.4.x. It is developed and tested on Magento 2.4.8, and supports PHP 8.1, 8.2, 8.3, 8.4, 8.5.
Where do I configure Limit Cart Quantity?
In the Magento admin under Stores › Configuration › Magento Expert › Limit Cart Quantity. It has 6 options, grouped into 2 sections.
Can I switch it off without uninstalling it?
Yes. Set "Enable Module" to No under Stores › Configuration › Magento Expert › Limit Cart Quantity. Your settings and data are kept.
Can the settings differ per store view?
Yes. Many options can be set per website and store view, so multi-store and multi-language setups can behave differently.
Can it be customised for my store?
Yes. As the developer of Limit Cart Quantity, I can adapt it to your workflow or build related features. Email me with what you need.
Available for new projects

Have a Magento project in mind?

Tell me about your store and what you need. I reply to every enquiry within one business day.

Adobe Certified Expert

Adobe Commerce Developer certification, verified on Credly.

15+ years of Magento

From Magento 1 to Magento 2.4.x, Adobe Commerce and Hyvä.

62 Marketplace extensions

Each one reviewed and approved by Adobe.