Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

HunkyBill commented on How do I get Product Variant Quantity using AJAX ?

$
0
0

A quick and dirty jQuery call to the product endpoint (needs the handle, not ID) would be:

$.getJSON('/products/somehandle.js', function (product) {
  console.log(product);
});

Since your call to /products.json returns the handles... you can easily get each products actual inventory that way... 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>