Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Get multiple product variants using their IDs using unoptimized SDK?

Get multiple product variants using their IDs using unoptimized SDK?

Innders
Visitor
1 0 0

I was hoping to use the expanded unoptimized Shopify buy SDK to get product variants from the a list of variant IDs. More specifically I want to get the inventory quantity for each variant so I can ensure any variants in the cart are still in stock (2 of one variant in the cart to check there are 2 left of that variant).

 

Was hoping to use this GraphQL here with the buy SDK.

 

But also maybe there's a better way of getting the inventory?

 

Thanks 🙂 

 

 

 

Replies 0 (0)