Unable to find `quantityAvailable` on variants – how can I get count stock?
See original GitHub issueHi there,
I’m not sure if I’m missing something, but this isn’t coming through on my requests, even with unoptimised: true
set in my nuxt.config.js
file.
I literally just need to query stock level and product/variant id as I am importing product data from Shopify to Sanity, but have been using: this.$shopify.product.fetchAll()
.
Thanks so much for your work on this,
Simon
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Get available combinations by checking quantity from selected ...
where Item is the selected item or selected product. and to show the variants as buttons and disable them when there is no...
Read more >Tracking and adjusting inventory - Shopify Help Center
You can view the inventory counts for your product variants on the Inventory page. On the Inventory page, you can search variants, filter...
Read more >How to show inventory quantity on the product page on Shopify
We will see in this tutorial how you can display the stock on your shopify ... we will display the real stock that...
Read more >Support for inventory quantity · Issue #753 · Shopify/js-buy-sdk
Hey, great job maintaining the libarary! Curious to hear when could we access the product variant's quantityAvailable field?
Read more >How to get and update Quantity of product/variant?
IInventoryService is what you need, you can get the stocks of a variant by its code, update the data, then save it back....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Small world indeed – Thank you so much, really appreciate it!
Glad it helped. And small world – on Friday Tom Baber was showing my the Drama typeface he was making for a site you are working on @rcobiella – love your work!