Liquid, JavaScript, themes, sales channels
Hello. I'm working on a store that's integrated with Hydrogen. I followed Shopify's tutorial on building a cart with Hydrogen and everything is working correctly, but I noticed something today: Using the LinesUpdate action, I'm able to exceed the current inventory of a product. I'm sure that there must be a check on stock after checkout, but this isn't exactly ideal from an UX standpoint.
Is there a way to check for inventory of a product inside the cart component? Or should the cart handler do it automatically, preventing users from requesting quantities that are not available, and I'm missing something?
Thank you in advance!
User | RANK |
---|---|
38 | |
28 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023