Cart items quantity logic
In the last video, we added a
qty property to our cart items. In this video, we'll create the logic for setting the quantity.
The idea of the
qty property is that rather than re-adding a product to the cart each time the
addToCart method is called on the same product, we instead just increment the
Click to load comments...