Skip to content

Conversation

@Golosova76
Copy link
Collaborator

Related task(s)/issue(s) 🔗

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
Product Duplication Check: Before adding a product to the shopping cart, verify whether the product is already present in the user's shopping cart.
"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.
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.

Done / deadline 📅

04.06.2024 / 18.06.2024

Screenshot/Illustration (optional) 📌

Comments (optional) 💬

@Golosova76 Golosova76 requested a review from Friday-13 June 12, 2024 19:05
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.

Acelent implementation! It was really tough work

Copy link
Owner

Choose a reason for hiding this comment

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

Clean code, nice work!

@Golosova76 Golosova76 merged commit 561807e into release/basket-about_us Jun 12, 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.

3 participants