Skip to content

Conversation

@Golosova76
Copy link
Collaborator

Related task(s)/issue(s) 🔗

Description 📋

To enhance user experience and give more control over their shopping cart 🛒, allow users to remove a product directly from the product page if it is already in their shopping cart.

🔨🧰 Implementation Details
Product Presence Check 🕵️‍♂️: Check if the product is already present in the user's shopping cart.
"Remove from Cart" Button ➖🛒: If the product is already in the shopping cart, provide an active and clickable "Remove from Cart" button on the product page. Clicking this should remove the product from the user's shopping cart.
API Integration 🔄💻: Use the chosen API to manage the shopping cart and remove products from it.
✅🎯 Acceptance Criteria
The application correctly identifies whether a product is already in the user's shopping cart when viewing the product page.
If the product is already in the shopping cart, a "Remove from Cart" button is visible and active on the product page.
Clicking the "Remove from Cart" button triggers an API call to remove the corresponding product from the user's shopping cart.
After successful removal, the user receives a confirmation message or visual cue.
The application handles API errors gracefully, showing appropriate error messages if the removal operation fails.

Done / deadline 📅

01.05.2024 / 18.06.2024

Screenshot/Illustration (optional) 📌

image

Comments (optional) 💬

@Golosova76 Golosova76 requested a review from Friday-13 June 25, 2024 11:42
@Friday-13 Friday-13 linked an issue Jun 25, 2024 that may be closed by this pull request
Copy link
Owner

@Friday-13 Friday-13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@Friday-13 Friday-13 merged commit 7aa8d1c into release/basket-about_us Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RSS-ECOMM-4_08: Remove Product from Cart Functionality

3 participants