Fixes # Issue when adding the same item to cart twice.
Description
Earlier, we weren't able to add the same item to cart more than once. I have fixed that issue and now we can add the same item multiple times to the cart.
Describe your solution otherwise I will reject your PR :)
There was a condition imposed in the function "addtoCartListener" which checked if a product is already in the cart. I removed that condition and now we can add the same product multiple times to the cart.
This is the default Template Don't Edit this
Linked Issue
18
Fixes # Issue when adding the same item to cart twice.
Description
Earlier, we weren't able to add the same item to cart more than once. I have fixed that issue and now we can add the same item multiple times to the cart.
Describe your solution otherwise I will reject your PR :)
There was a condition imposed in the function "addtoCartListener" which checked if a product is already in the cart. I removed that condition and now we can add the same product multiple times to the cart.