/*<![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; } function ShopifyBuyInit() { var client = ShopifyBuy.buildClient({ domain: 'the-sportsmans-doctor.myshopify.com', storefrontAccessToken: '49f09d38a170ec913e6978f6593e400b', }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent('collection', { id: '150561292385', node: document.getElementById('collection-component-1570470629855'), moneyFormat: '%24%7B%7Bamount%7D%7D', options: { "product": { "styles": { "product": { "@media (min-width: 601px)": { "max-width": "calc(25% - 20px)", "margin-left": "20px", "margin-bottom": "50px", "width": "calc(25% - 20px)" }, "img": { "height": "calc(100% - 15px)", "position": "absolute", "left": "0", "right": "0", "top": "0" }, "imgWrapper": { "padding-top": "calc(75% + 15px)", "position": "relative", "height": "0" } }, "title": { "font-family": "Playfair Display, serif", "font-size": "20px", "color": "#6d161e" }, "button": { "font-size": "14px", "padding-top": "15px", "padding-bottom": "15px", "padding-left": "35px", "padding-right": "35px" }, "quantityInput": { "font-size": "14px", "padding-top": "15px", "padding-bottom": "15px" }, "price": { "font-family": "Playfair Display, serif", "font-weight": "bold", "font-size": "15px" }, "compareAt": { "font-family": "Playfair Display, serif", "font-weight": "bold", "font-size": "12.75px" } }, "contents": { "button": false, "buttonWithQuantity": true }, "text": { "button": "Add to cart" }, "googleFonts": [ "Playfair Display" ] }, "productSet": { "styles": { "products": { "@media (min-width: 601px)": { "margin-left": "-20px" } } } }, "modalProduct": { "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true }, "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0px", "margin-bottom": "0px" } }, "button": { "font-size": "14px", "padding-top": "15px", "padding-bottom": "15px", "padding-left": "35px", "padding-right": "35px" }, "quantityInput": { "font-size": "14px", "padding-top": "15px", "padding-bottom": "15px" } }, "text": { "button": "Add to cart" } }, "option": { "styles": { "label": { "font-family": "Droid Sans, sans-serif", "font-size": "15px" }, "select": { "font-family": "Droid Sans, sans-serif" } }, "googleFonts": [ "Droid Sans" ] }, "cart": { "styles": { "button": { "font-size": "14px", "padding-top": "15px", "padding-bottom": "15px" } }, "text": { "title": "Shopping Cart", "total": "Subtotal", "button": "Checkout" } }, "toggle": { "styles": { "count": { "font-size": "14px" } } } }, }); }); } })(); /*]]>*/