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
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
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 π