Jump to content

Sophik

Circle Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Sophik

  1. this is what i did to insert the SKU right below the price on a single product page (don't have this for category/list page)... hope it helps. <script> jQuery(document).ready(function() { jQuery("<div id='sku'></div>").insertAfter(".ProductItem-product-price" ); var pathname = window.location.pathname; jQuery.ajax({ url: pathname + "?format=json-pretty", dataType: "json", success: function (data) { sku = data.item.structuredContent.variants[0].sku; jQuery("#sku").html("<b>SKU:</b> " + sku); } }); }); </script>
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.