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_07: Add Product to Cart Functionality for Non-Duplicated Products #72

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

Comments

@EternalRival
Copy link
Owner

🛒 Issue RSS-ECOMM-4_07: Add Product to Cart Functionality for Non-Duplicated Products (15 points)

📋 Description

To prevent duplication and increase user convenience, only allow a product to be added to the shopping cart if it is not already present in it. If the product is not already in the user's shopping cart, provide an "Add to Cart" button that adds the product with the selected options to their cart.

🔨 Implementation Details

  1. Product Duplication Check: Before adding a product to the shopping cart, verify whether the product is already present in the user's shopping cart.
  2. "Add to Cart" Button: If the product is not already in the shopping cart, the "Add to Cart" button should be active and clickable. When clicked, this button should add the product with the selected options to the shopping cart.
  3. API Integration: Use the commercetools to manage the shopping cart and add products to it.

✅ Acceptance Criteria

  • The application checks whether a product is already in the user's shopping cart before adding it.
  • If the product is not already in the shopping cart, the "Add to Cart" button is active and can add the product to the cart.
  • If the product is already in the shopping cart, the "Add to Cart" button is inactive or provides a relevant notice.

🌐 Useful Links and Resources

  1. Commercetools API Documentation
  2. Commercetools Cart and Order API
  3. Commercetools Get Cart
  4. Commercetools My Carts
  5. Commercetools Create Cart
  6. Commercetools Add Line Item
@EternalRival EternalRival changed the title Issue RSS-ECOMM-4_07: Add Product to Cart Functionality for Non-Duplicated Products RSS-ECOMM-4_07: Add Product to Cart Functionality for Non-Duplicated Products May 25, 2024
@EternalRival EternalRival self-assigned this May 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

No branches or pull requests

1 participant