Welcome to the Liquify Community

Updated last week

Add to cart broken when quantity exceeds amount in stock

Noticed this on my site https://huasna.com.

If I add more quantity, then is in stock to cart, the cart opens empty. Here’s a video showing the issue.
j
P
3 comments
Hi @Paulo Mello, Thank you for your feedback. Unfortunately, this is a limitation on Shopify’s end. The API response indicates insufficient stock, but Shopify does not automatically add the available products to resolve this issue.

We have an object to show api responses Error.
<div li-api-response class="mini-cart_error"> <div li-js-object="cartApiResponse?.result?.message" class="mini-cart_message-holder">This is some text inside of a div block.</div> </div>
Awesome, at least we can add an error message. Thanks for the reply!
No problem 🙂 what would be nice to add a max attribute with the inventory_quantity
Add a reply
Sign up and join the conversation on Discord