cancel
Showing results for 
Search instead for 
Did you mean: 

Limit minimum order quantity for cart Magento 2.4.6

Limit minimum order quantity for cart Magento 2.4.6

Hello,

I came across such problem. I need to set the minimum quantity of products in cart to 5. By default, Magento has such a function. I set the minimum number of products to 5 for all user groups, but this does not work on the front end. That is, no warning messages are displayed and the order can be placed if the quantity is less than 5. I also tried to set both minimum and maximum quantity, the effect is the same.
There is nothing in the logs, Magento 2.4.6, theme Luma.
Has anyone encountered such a problem, which way to look?

Thanks in advance.

2 REPLIES 2

Re: Limit minimum order quantity for cart Magento 2.4.6

Setting it in Stores > Configuration > Catalog > Inventory > Product Stock Options should be all that is required.

 

Have you flushed cache after you applied this change?

Founder at https://agency418.com

Re: Limit minimum order quantity for cart Magento 2.4.6

Thanks for the answers. But the problem is that the minimum quantity of each product will be equal to the established value. And I need the total quantity of all items in the cart to be at least the specified value. So I establish Maximum Qty Allowed in Shopping Cart for each product 1 and for Cart (in Product Stock Options) 5 for example. And it doesn't work.