-
Notifications
You must be signed in to change notification settings - Fork 77
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
Changing quantity in cart > stock #117
Comments
Thanks for your feedback. @prasmalla is it your vendure plugin? |
When the GraphQL mutation The proper way to handle this is that for any mutation that returns a union which may include ErrorResults, the storefront needs to check the type, and in the case of an error, handle appropriately such as displaying an error message. More docs on this here: https://docs.vendure.io/developer-guide/error-handling/#expected-errors-errorresults |
I have a current issue where if you change the quantity in cart > then the stock available the item disappears from cart. Refreshing I get the maximum available. ie: I select "8" but only have "5", when I refresh I find "5" but in the meantime it disappears and doesn't let me "add to cart" (insufficient stock).
Desired solution: perhaps allow a dropdown which matches number of stock? or textfield? or at least min(stock,8) of options?
Perhaps a textfield with arrow buttons? Not sure what the correct approach is here, ideas?
The text was updated successfully, but these errors were encountered: