Press "Enter" to skip to content

Test

Test

/*<![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: ‘dr-fertility.myshopify.com’,
apiKey: ‘5e6b0fda80d34d16aa9900749417922b’,
appId: ‘6’,
});

ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent(‘product’, {
id: [4458441479],
node: document.getElementById(‘product-component-9d3b1a6c004’),
moneyFormat: ‘%C2%A3%7B%7Bamount%7D%7D’,
options: {
“product”: {
“buttonDestination”: “modal”,
“variantId”: “all”,
“width”: “240px”,
“contents”: {
“imgWithCarousel”: false,
“variantTitle”: false,
“options”: false,
“description”: false,
“buttonWithQuantity”: false,
“quantity”: false
},
“text”: {
“button”: “VIEW PRODUCT”
},
“styles”: {
“product”: {
“@media (min-width: 601px)”: {
“max-width”: “100%”,
“margin-left”: “0”,
“margin-bottom”: “50px”
}
},
“compareAt”: {
“font-size”: “12px”
}
}
},
“cart”: {
“contents”: {
“button”: true
},
“text”: {
“title”: “Basket”,
“empty”: “Your basket is empty.”
},
“styles”: {
“footer”: {
“background-color”: “#ffffff”
}
}
},
“modalProduct”: {
“contents”: {
“img”: false,
“imgWithCarousel”: true,
“variantTitle”: false,
“buttonWithQuantity”: true,
“button”: false,
“quantity”: false
},
“styles”: {
“product”: {
“@media (min-width: 601px)”: {
“max-width”: “100%”,
“margin-left”: “0px”,
“margin-bottom”: “0px”
}
}
}
},
“productSet”: {
“styles”: {
“products”: {
“@media (min-width: 601px)”: {
“margin-left”: “-20px”
}
}
}
}
}
});
});
}
})();
/*]]>*/

The post Test appeared first on The Fertility Podcast.


Source: The Fertility Podcast

Be First to Comment