// */
(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: ’my-journey-to-iceland.myshopify.com’,
apiKey: ’786fb7a839f18d12ddf42f6b27c38b7e’,
appId: ’6’,
});
ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent(’product’, {
id: [6645652229],
node: document.getElementById(’product-component-d91189c87a2’),
moneyFormat: ’{{amount}} e’,
options: {
”product”: {
”buttonDestination”: ”checkout”,
”layout”: ”horizontal”,
”variantId”: ”all”,
”width”: ”100%”,
”contents”: {
”img”: true,
”title”: true,
”variantTitle”: false,
”options”: true,
”price”: true,
”description”: true,
”buttonWithQuantity”: false,
”button”: true,
”quantity”: false
},
”text”: {
”button”: ”OSTA TÄSTÄ (+ postikulut 5 e kaikkialle)”
},
”styles”: {
”product”: {
”@media (min-width: 601px)”: {
”max-width”: ”100%”,
”margin-left”: ”0”,
”margin-bottom”: ”50px”
}
},
”button”: {
”background-color”: ”#e90948”,
”color”: ”#ffffff”,
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”15px”,
”padding-top”: ”16px”,
”padding-bottom”: ”16px”,
”padding-left”: ”26px”,
”padding-right”: ”26px”,
”border”: ”none”,
”:hover”: {
”background-color”: ”#d20841”,
”color”: ”#ffffff”
},
”border-radius”: ”3px”,
”:focus”: {
”background-color”: ”#d20841”
}
},
”variantTitle”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”14px”,
”color”: ”#4c4c4c”
},
”title”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-weight”: ”bold”,
”font-size”: ”26px”,
”color”: ”#4c4c4c”
},
”description”: {
”color”: ”#4c4c4c”,
”font-size”: ”14px”,
”font-family”: ”Helvetica Neue, sans-serif”
},
”price”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”18px”,
”color”: ”#4c4c4c”
},
”quantityInput”: {
”font-size”: ”16px”,
”padding-top”: ”16px”,
”padding-bottom”: ”16px”,
”color”: ”#4c4c4c”
},
”compareAt”: {
”font-size”: ”15px”
}
}
},
”cart”: {
”contents”: {
”title”: true,
”lineItems”: true,
”footer”: true,
”button”: true
},
”text”: {
”title”: ”Cart”,
”total”: ”Total”,
”notice”: ”Shipping and discount codes are added at checkout.”,
”button”: ”CHECKOUT”
},
”styles”: {
”button”: {
”background-color”: ”#e90948”,
”color”: ”#ffffff”,
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”16px”,
”padding-top”: ”16px”,
”padding-bottom”: ”16px”,
”padding-left”: ”26px”,
”padding-right”: ”26px”,
”border”: ”none”,
”:hover”: {
”background-color”: ”#d20841”,
”color”: ”#ffffff”
},
”border-radius”: ”3px”,
”:focus”: {
”background-color”: ”#d20841”
}
},
”cart”: {
”background-color”: ”#ffffff”
},
”footer”: {
”background-color”: ”#ffffff”
},
”title”: {
”color”: ”#4c4c4c”
},
”close”: {
”:hover”: {
}
}
}
},
”modalProduct”: {
”contents”: {
”img”: true,
”title”: true,
”variantTitle”: false,
”options”: true,
”price”: true,
”description”: true,
”buttonWithQuantity”: false,
”button”: true,
”quantity”: false
},
”text”: {
”button”: ”ADD TO CART”
},
”styles”: {
”product”: {
”@media (min-width: 601px)”: {
”max-width”: ”100%”,
”margin-left”: ”20px”,
”margin-bottom”: ”50px”
}
},
”button”: {
”background-color”: ”#e90948”,
”color”: ”#ffffff”,
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”15px”,
”padding-top”: ”16px”,
”padding-bottom”: ”16px”,
”padding-left”: ”26px”,
”padding-right”: ”26px”,
”border”: ”none”,
”:hover”: {
”background-color”: ”#d20841”,
”color”: ”#ffffff”
},
”border-radius”: ”3px”,
”:focus”: {
”background-color”: ”#d20841”
}
},
”variantTitle”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”14px”,
”color”: ”#4c4c4c”
},
”title”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-weight”: ”bold”,
”font-size”: ”26px”,
”color”: ”#4c4c4c”
},
”description”: {
”color”: ”#4c4c4c”,
”font-size”: ”14px”,
”font-family”: ”Helvetica Neue, sans-serif”
},
”price”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-size”: ”14px”,
”color”: ”#4c4c4c”
},
”quantityInput”: {
”font-size”: ”16px”,
”padding-top”: ”16px”,
”padding-bottom”: ”16px”,
”color”: ”#4c4c4c”
}
}
},
”productSet”: {
”styles”: {
”products”: {
”@media (min-width: 601px)”: {
”margin-left”: ”-20px”
}
}
}
},
”toggle”: {
”styles”: {
”toggle”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”background-color”: ”#e90948”,
”:hover”: {
”background-color”: ”#d20841”
},
”:focus”: {
”background-color”: ”#d20841”
}
},
”count”: {
”color”: ”#ffffff”,
”:hover”: {
”color”: ”#ffffff”
}
},
”iconPath”: {
”fill”: ”#ffffff”
}
}
},
”modal”: {
”styles”: {
”modal”: {
”background-color”: ”#ffffff”
}
}
},
”option”: {
”styles”: {
”label”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-weight”: ”normal”,
”color”: ”#4c4c4c”
},
”select”: {
”font-family”: ”Helvetica Neue, sans-serif”,
”font-weight”: ”normal”,
”color”: ”#4c4c4c”
}
}
}
}
});
});
}
})();
/* */
//]]>