Qu-Ack / opensource_starter

0 stars 12 forks source link

fix: add to cart bug #24

Open mindspirex opened 1 week ago

mindspirex commented 1 week ago

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.