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)