question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find `quantityAvailable` on variants – how can I get count stock?

See original GitHub issue

Hi 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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rcobiellacommented, Feb 22, 2022

simonhrogers

Small world indeed – Thank you so much, really appreciate it!

1reaction
simonhrogerscommented, Feb 22, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found