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.
Incrementing 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 qty value.
Click to load comments...