Having trouble finding avaialableQuantity using ReactHooks and Storefront API

LukasChrapko
New Member
1 0 0

I am not using graphql but rather React and Redux to manage queries and state and I am having a really hard time finding the availableQuantity property for each of my products. I have updated my shopify-buy dependency to the most recent 2.11.0 and also in my Store front API permissions I checked unauthenticated_read_product_inventory so I'm really not sure what could be causing this.

I am wondering if there is any information that anyone could give me regarding this

Screen Shot 2021-04-27 at 2.23.07 PM.pngScreen Shot 2021-04-27 at 2.28.35 PM.png

thanks

 

0 Likes
c10s
Shopify Partner
23 6 5

I haven't used the shopify-buy library in a while but I suspect you need to "Expand the SDK" to get the additional field you're after.

0 Likes