🔥 Just Launched! Werra Premium Template for HyväSee it in Action

How to Set Minimum Qty Allowed in Shopping Cart in Magento 2

By Jignesh ParmarUpdated on May 21, 2025 3 min read

E-commerce store owners adopt various revenue and inventory management statistics to maintain the profit margin and stock. Likewise you can also set minimum order amount in Magento 2 to balance between profit margins and feasible prices.

It may happen that the order management cost exceeds the profit margin. In such cases, the business incurs the loss and hence, the store owners can set minimum quantity allowed for checkout.

The default Magento 2 offers such an option that ensures considerable profit margin. The admin can configure minimum qty allowed in Magento 2 store. Moreover, the admin can set a minimum quantity for each customer group too.

If a customer does not satisfy the set condition from the backend, an error message is displayed to restrict them to add products to the cart.

In this way, the admin can increase average order value, overcome the packing and shipping expenses, and effectively manage the shipping of heavy products.

Apart from this, if you want to limit cart quantity based on each category, you can opt for Meetanshi’s Magento 2 Limit Quantity Per Category extension that allows admin to restrict product quantity ordered from each category for every customer group.

Implement the below method for effective marketing strategies and order management!

Steps to Configure Minimum Quantity Allowed in Magento 2

Minimum QTY allowed in shopping cart Magento configuration

Login to Magento 2 admin panel

Navigate to Stores > Settings > Configuration

Select Inventory under Catalog section.

Expand Product Stock Options section

Set the minimum quantity as per your business requirement in Minimum Qty Allowed in Shopping Cart.

  1. You can select Customer Group for setting minimum quantity limit for specific groups.
  2. If you want to set a minimum quantity limit for all the group, you can simply enter the number by selecting ALL GROUPS.

Click Save Config

Minimum quantity in shopping cart - frontend - in Magento 2

Here, I have entered “1” in the minimum quantity allowed in the shopping cart. Therefore, when the customers want to purchase only 1 quantity, the message will be shown as “The fewest you may purchase is 2”.

Minimum quantity in shopping cart - frontend - in Magento 2

If I wish to purchase quantities greater than the set minimum quantity, I am allowed to proceed with the checkout. For example, here, I have entered 3, i.e., greater than the minimum quantity 2 so it avoids any error message as shown in the above figure.

That’s it.

Do consider sharing this post with Magento 2 community via social media.

Thank you.

Jignesh Parmar Full Image
Article byJignesh Parmar

An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.