Indie-Kart / ecommerce-store

https://indiekart.vercel.app/
MIT License
39 stars 59 forks source link

Add Directly remove Item from item page #90

Closed kushalkumar1362 closed 1 month ago

kushalkumar1362 commented 1 month ago

PR Description πŸ“œ

Summary

This PR improves the user experience by allowing users to remove items directly from the product page. Previously, users had to navigate to the cart page to remove an item, which was time-consuming and not user-friendly. Now, when a product is added to the cart, the "Add to Cart" or Cart Icon button is replaced with a "Remove Item" or Trash Icon button, enabling users to quickly and easily remove items if needed.

Motivation and Context

Users expressed frustration with the need to visit the cart page to remove items, especially in cases of accidental bookmarks. This change streamlines the process, making it more intuitive and efficient for users to manage their cart items directly from the product page.

Dependencies

No additional dependencies are required for this change.

Fixes #72


Type of Change

How Has This Been Tested?

Mark the task you have completed βœ…

Add your screenshots(Optional) πŸ“Έ

https://github.com/Indie-Kart/ecommerce-store/assets/140513098/a21e7197-ee88-4281-a511-d4b9c658acb7



Thank you soo much for contributing to our repository πŸ’—