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

Cart error "You can only add X amount of this item to your cart" #2935

Open
eugenekasimov opened this issue Aug 2, 2023 · 5 comments · May be fixed by #3476
Open

Cart error "You can only add X amount of this item to your cart" #2935

eugenekasimov opened this issue Aug 2, 2023 · 5 comments · May be fixed by #3476

Comments

@eugenekasimov
Copy link
Contributor

Describe the current behavior

There is an cart error "You can only add X amount of this item to your cart" that occurs if you go to the cart from the checkout using breadcrumbs and try to change qty in cart. This error does not reflect an actual inventory of an item. An order of items in the cart may switch when you change qty.

Replication Steps

  • Add 2 or more products to the cart
  • Go to the cart and then proceed to the checkout
  • Use Checkout Breadcrumbs to go back to cart
  • Attempt to add/change qty of the products in the cart (Order of products may switch) > ERROR.
  • Cart will have the correct number of products if refreshed

Describe the expected behavior

Expected behaviour is being able to correctly navigate back to the cart from the checkout and change the number of products then navigate back to the checkout.

Version information (Dawn, browsers and operating systems)

  • Dawn Version: 11.0.0
  • Chrome Version 108.0.5359.124
  • macOS Version 13.1

Possible solution

Additional context/screenshots

Video

@lucianosousa
Copy link
Member

cc @dcugalj do you know if the cart API renders items in the checkout page? We may have another bug here

@dcugalj
Copy link

dcugalj commented Aug 3, 2023

@lucianosousa , this seems to be FE bug, correct?

@lucianosousa
Copy link
Member

@lucianosousa , this seems to be FE bug, correct?

@dcugalj not sure, it could be related to how we return the cart object here whenever we have a message coming from the backend.
That's why I think it should be interesting to see this from the cart team perspective

Maybe take a look in what you return when the scenario Eugene's shared happens

@jibeizhao
Copy link

looks similar to this one Down theme issue

@austriker27
Copy link

I've also come across this bug in another Shopify Theme - so perhaps its a bug in Shopify not the Dawn theme.

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 a pull request may close this issue.

5 participants