Jump to content

kilaueacommunityagcenter

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kilaueacommunityagcenter

  1. Does anyone know how to incorporate the Shopify Buy button into a Squarespace storefront that is setup for members only? I used this guide to add the shopify button to an individual page, but I'm having trouble inserting the Shopify Buy button into a squarespace storefront that is setup for members only. The storefront pages are dynamic and only allow you to inject the code into a page header versus allowing you to inject the code into individual pages. Here's the website with the store and members area: https://www.ainahookupuokilauea.org/meat-club u: burnsy825@gmail.com p: Ocjc36785952 Shopify Buy Button Code: <div id='collection-component-1673396065416'></div> <script type="text/javascript"> /*<![CDATA[*/ (function () { var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js'; if (window.ShopifyBuy) { if (window.ShopifyBuy.UI) { ShopifyBuyInit(); } else { loadScript(); } } else { loadScript(); } function loadScript() { var script = document.createElement('script'); script.async = true; script.src = scriptURL; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script); script.onload = ShopifyBuyInit; } Can anyone help me get this code to work within a Storefront setup to allow members only to purchase products?
×
×
  • 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.