You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
When the GraphQL mutation adjustOrderLine is executed, and the quantity exceeds the available stock, an ErrorResult will be returned. So this line will be incorrectly asserting the result to be of type Order, when it will be actually of type OrderLimitError (docs).
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.
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: