I'm wondering if anyone can help with a query. My store will be largely full of grouped products just like this example here:
http://magento2acp.demo2.aheadworks.com ... traps.html
With my store, a typical customer is likely to add many of these products to their basket at once. Therefore I need to add Quantity Plus(+) / Minus(-) increment buttons against the quantity.
Product 1 [+] [ QTY ] [-]
- Code: Select all
Product does not yet exist in the cart.
Click [+]. Product is added to cart with quantity of 1.
Click [+]. Product quantity is updated to have a quantity of 2.
Click [-] twice. Product quantity is 0 and removed from cart.
What I need to make sure I avoid is, after clicking [+] once, and I get a quantity of 1, I then click [+] again so the quantity field displays 2, it sends the request with 2 and it adds an extra 2 items (Totalling 3) instead of changing the quantity to 2. If this makes sense.
Does anyone know if an endpoint exists that will let me submit this request to add / change the quantity? That I can then bind to a change event of the Quantity field.