Jump to content

Add Shopify Button to Members Only Squarespace Storefront

Recommended Posts

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?

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

10 hours ago, kilaueacommunityagcenter said:

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 process is no different for Store pages within a Member Area. You add your Store page to the Member Area within the PAGES panel and then you edit individual products by adding each buy button to the Additional Info section. What happens when you try to do this?

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.