Headless commerce and custom storefronts with Shopify APIs and SDKs
Return management just got easier! We’ve launched Customer Self-Serve Returns to all Shopify merchants. Click here to learn more!
For all our customer-facing product pages, we use the store_availability object to determine which of our 8 locations have an item in stock and list those locations to the user. (see https://shopify.dev/api/liquid/objects/storeavailability for reference). This is done by checking store_availability.available for each location. The problem we're running into is that for products that have an inventory quantity of 0 in stock for a given location, store_availability.available is till reporting as true for those locations.
For instance:
On our Admin Product page, an item will show Availabilities of 0 for 5/8 locations.
On the consumer-facing product page, iterating through all the locations for that product (only 1 variant) shows the item is available at all 8 locations.
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022