Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

How to Set Magento 2 Maximum Order Quantity

Vinh Jacker | 03-17-2025

How to Set Magento 2 Maximum Order Quantity

Have you ever experienced your best-selling product constantly out of stock, even after frequent restocks? Disappointed customers waiting patiently miss out because others buy everything at once! Don’t worry—we’ve got you covered! Setting a maximum order quantity per customer helps prevent shoppers from buying too many at the same time and therefore ensures everyone gets a fair shot.

This blog post will guide you through the easy setup process for both minimum and maximum order quantities.

How to Configure Magento 2 Maximum Order Quantity

  • Log in to your admin panel and go to Stores > Settings > Configuration > Catalog > Inventory

Inventory configuration

  • Expand the Product Stock Options section

Product stock options

  • Find the Maximum Qty Allowed in Shopping Cart field and enter the number of products a customer can maximally buy for each order.

Maximum qty allowed in shopping cart

Set the Minimum Order Quantity in Magento 2

  • Scroll down and find Minimum Qty Allowed in Shopping Cart. Here, just choose a customer group, then assign the min order quantity for that group by entering the number you want in the Minimum Qty box.

Minimum qty allowed in shopping cart

  • If you’d like to add minimum order qty for other groups, just click the Add Minimum Qty button.

  • Finally, after setting the maximum and minimum limits, remember to press Save Config in the top right corner.

Set Maximum Quantity for Each Product

While limiting order quantities stops customers from buying too many popular items, it can also make it difficult for those who want to buy a variety of products. This is because the total items in their cart might exceed the allowed limit.

The ideal solution would be to set individual maximum quantities for each product. Here’s how to do it.

  • Navigate to Catalog > Products

Catalog products

  • Choose to Edit the product you need

Edit product

  • Click on Advanced Inventory

Advanced inventory

  • Turn off Use Config Settings, and then set minimum and maximum qty for that product by entering the number you want in Minimum Qty Allowed in Shopping Cart and Maximum Qty Allowed in Shopping Cart fields

Set maximum qty for that product

Wrap up

Magento 2 offers flexibility for selling products in bulk or individually. To maintain healthy inventory levels and sales, you can set limits on how much customers can purchase at once.

The built-in Magento 2 features allow you to define minimum and maximum order quantities for your entire shopping cart and for each product. You can adjust these limits based on your specific needs.

If you have any questions, please feel free to contact us.

Jacker

Jacker is the Chief Technology Officer (CTO) at Mageplaza, bringing over 10 years of experience in Magento, Shopify, and other eCommerce platforms. With deep technical expertise, he has led numerous successful projects, optimizing and scaling online stores for global brands. Beyond his work in eCommerce development, he is passionate about running and swimming.



Related Post

Website Support
& Maintenance Services

Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

Get Started
mageplaza services