Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EternalRival opened this issue May 25, 2024 · 0 comments
Open

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

EternalRival opened this issue May 25, 2024 · 0 comments
Assignees

Comments

@EternalRival
Copy link
Owner

πŸ›’πŸ—‘οΈ Issue RSS-ECOMM-4_08: Remove Product from Cart Functionality (15 points)

πŸ“‹πŸ” 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

  1. Product Presence Check πŸ•΅οΈβ€β™‚οΈ: Check if the product is already present in the user's shopping cart.
  2. "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.
  3. 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.

πŸŒπŸ”— Useful Links and Resources

  1. Commercetools API Documentation πŸ“š
  2. Commercetools Cart and Order API πŸ›’πŸ§Ύ
  3. Update Cart Actions πŸ—‘οΈπŸ”’
  4. Commercetools Get Cart πŸ›’πŸ‘€
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

No branches or pull requests

1 participant