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
  • Views 223
  • 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?

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.