Get Shopify Product Data with Jason Format in JavaScript

PHOTO EMBED

Tue Nov 08 2022 21:34:22 GMT+0000 (Coordinated Universal Time)

Saved by @PIzmAR

(function($){
    $(document).ready(function(e){
      var store_url = "https://neonbeach.com/"; // replaced with your shopify store url
      var product_id = "babe-you-look-so-cool-neon-sign"; // replaced with your product id
      var full_url = store_url + '/products/' + product_id + '.json';
      
      $.ajax({
        url: full_url,
        success: function(data) {
          console.log("product id:" + data.product.id);
          console.log("product title:" + data.product.title);
          // ... to do 
          // all your process with product data logic
        }
      });
      
      });
    })(jQuery);
content_copyCOPY