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

Add to Cart functionality issue #202

Open
developeryashraj opened this issue Jan 17, 2022 · 0 comments
Open

Add to Cart functionality issue #202

developeryashraj opened this issue Jan 17, 2022 · 0 comments

Comments

@developeryashraj
Copy link

Bug report

Describe the bug

When you click multiple times on "Add to Card" button multiple times. It pushes same product for multiple times in array. Whether it should only update the quantity if product is already in cart.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to https://demo.reactstorefront.io/p/3
  2. Click on 'Add to Card' multiple times. Just close the popup if it opens.
  3. Go to Cart page https://demo.reactstorefront.io/cart
  4. See Multiple entries of same product

Expected behavior

Quantity of the product should get updated in case if it's already in cart and user clicks on "Add to Card"

Screenshots

Product Page

image

Cart Page

image

System information

  • OS: [e.g. macOS, Windows]
  • Browser (if applies) [e.g. chrome, safari]
  • Version of React Storefront: [e.g. 7.0.2]

Additional context

Add any other context about the problem here.

developeryashraj added a commit to developeryashraj/react-storefront that referenced this issue Jan 17, 2022
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