Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi,
I'm building a React storefront for a client using the Storefront API and am having trouble finding a value for the current stock quantity in the checkout from the product object gets returned from the API request. I can see the 'avaliable for sale' boolean, but I need to build a selection dropdown for quantities, limited to the amount of items in stock.
I might be missing something completely obvious, in which case - apologies, but it seems to be either missing from the response object, or I'm being completely blind?
attached is an example of a product:
Thank you!
Maybe you don't have that permission enabled.
Hi, I'm having the same problem. Did you manage to solve it? Thank you!
I have set the permissions and still getting the error. It seems to be a bug, maybe?