Hello,
I’ve noticed that in the file layouts/form_part_start_add_to_cart_list.php, the quantity value is always set to 1.
So, when adding a product to the cart from the list view, it always shows a quantity of 1.
However, if the product has a Minimum Order Quantity greater than 1, it still allows adding it to the cart — but then an error occurs during checkout, which can be a bit confusing for users.
Wouldn’t it make sense to use the min_quantity value instead of 1 in this case?
Using Minimum Order Quantity when adding to cart from list view
-
- Phoca Enthusiast
- Posts: 86
- Joined: 14 Nov 2022, 12:04
- Jan
- Phoca Hero
- Posts: 49023
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Using Minimum Order Quantity when adding to cart from list view
Hi, the minimum order quantity is a checkout rule, which means the quantity is checked when the order is made, not when it is added to cart. The problem is that standard method when clicking on "add to cart" button is just add one item, not sure what would customer say when he/she expects one item to be added to cart and e.g. three will be added. 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 86
- Joined: 14 Nov 2022, 12:04
Re: Using Minimum Order Quantity when adding to cart from list view
I understand, but if I’m the one shopping, a message that appears near the Add to cart button or during the AJAX add-to-cart process (like “this product can only be purchased in multiples of three”) would be much less frustrating than seeing the total in the cart, deciding to buy, filling out all the details — and then being told I can’t actually purchase it.
At least for me
