-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 Page: Inconsistent error messaging for low item stock #380
Comments
Thanks for spotting this @clyde-baker. Given there are 2 different bugs listed in this ticket - I've created a separate ticket for the Product Page issue, and will edit your initial description to be focused on the Cart page bug. |
Here is what I'm observing to add some details to this issue: video |
There is also an odd issue in Safari brought up here by @Binthout: #582 (comment) Here is some early observations:
|
Looks like it's specific to Mac.
There was some useful information in that thread of comments: https://bugzilla.mozilla.org/show_bug.cgi?id=1547926 So I think a quick fix would be to change this: if (lineItem) lineItem.querySelector(`[name="${name}"]`).focus(); to this if (lineItem && lineItem.querySelector(`[name="${name}"]`)) lineItem.querySelector(`[name="${name}"]`).focus(); |
This seems to be working fine with the mentioned fix! |
Bug description:
When a buyer attempts to increase the quantity of a line item on the cart page, to a number that exceeds the limit of inventory available, it will reset to max quantity available with no explanation as to what just happened. Only after trying to increase the quantity a second time does an error message display.
The error message should display every time a buyer tries to enter a quantity that exceeds the available limit
https://screenshot.click/21-43-1vk8m-krbl2.mp4
Original Comment from @clyde-baker:
I haven't seen a fix for this yet but it's a UX disaster that will surely lead to a large number of abandonments.
Users are able to add an unlimited number of items to their cart from the product page, even if there is only 1 in stock.
Only once the user initiates checkout does an error appear stating "Out of stock. Some items are no longer available. Your cart has been updated." Unfortunately, waiting until a user has already committed to checking is way too late. And even if you click "Return to cart", the quantity doesn't actually update and remains at the impossible number.
In addition, if the user attempts to increase the impossible quantity from the cart page, it will reset to lowest quantity available with no explanation as to what just happened. Only after trying to increase the quantity a second time does an error display.
Like with the Debut theme, users should be prevented from adding the impossible quantity to cart and immediately given an error message.
The text was updated successfully, but these errors were encountered: