Closed boherm closed 3 months ago
IMO it would be better to use a different approach. Keep min
exactly as it is set in product configuration and if the current product combination is already in the cart then the value
should be updated to its amount in the cart and instead of theAdd to cart
button there would be Update cart
. It would make all calculations obsolete. Just get the product config and its amount in the cart.
Thanks for your comment @SharakPL, your approach with Update cart
instead of Add to cart
button seems cool, but I think that is a "feature" that need to be discuss together with @PrestaShop/product-council. I don't know if they had this possibility in mind.
Thanks @florine2623 for your message! After some tests, I have totally the same behaviour on my side. But, they are not related to HB theme, and we have the same problems on classic theme.
In fact, this is a problem with the core here and after a small talk with @jolelievre, this could be fix in another PR and directly on the core side.
What do you think? 🤔
Hello @boherm and @jolelievre ,
Ok for me to get it fixed on the core directly ^^ I'll let you decide on what to do with this PR ! I'll take off the Waiting for QA label.
Thanks!
1. Set a minimal quantity for ordering a product in BO.
2. Then go to the FO and search your product in categories pages, and see the value displayed in the quantity input.
3. After added to the cart, you must have "1" in the quantity input instead of the minimal quantity required to put the product on your cart.