mohitparmar1 / Shopy

https://shopy-mohitparmar1s-projects.vercel.app/
37 stars 71 forks source link

🪲[Bug]: delete button in the cart does not remove all quantity of that product from cart but it only decrease item quantity #158

Open ayushpatel1248 opened 1 month ago

ayushpatel1248 commented 1 month ago

Describe the bug

in cart when there is item which have more then one quantity then if we click on the delete (cross) button it should delete the whole product with its all quantity but instead it is only decrementing the quantity of product which is not its work decrementing is work of minus button.

To Reproduce

  1. will make the function in the context api code for deleting the product from the cart
  2. using context api only call that function the cross button is clicked in the cart.

Expected behavior

after the addition of this code whenever user will click on the cross button whole product with its all quantity will me removed from the cart.

Screenshots

Screenshot 2024-05-16 at 5 13 39 PM Screenshot 2024-05-16 at 5 14 29 PM Screenshot 2024-05-16 at 5 14 19 PM

here you can see it only decremented the quantity not didnt remove

Desktop (please complete the following information):

please assign me this under the gssoc 24

github-actions[bot] commented 1 month ago

Congratulations, @ayushpatel1248! 🎉 Thank you for creating your issue. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work!

We will promptly review your changes and offer feedback. Keep up the excellent work! Kindly remember to check our contributing guidelines