kilaueacommunityagcenter Posted January 12 Share Posted January 12 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
paul2009 Posted January 13 Share Posted January 13 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: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment