Botón de Compra

<div id='collection-component-1618327074312'></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;
}
function ShopifyBuyInit() {
var client = ShopifyBuy.buildClient({
domain: 'berrych-espana.myshopify.com',
storefrontAccessToken: '2c94a90bddb1458405923700a61ebb8b',
});
ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent('collection', {
id: '262783664334',
node: document.getElementById('collection-component-1618327074312'),
moneyFormat: '%E2%82%AC%7B%7Bamount_with_comma_separator%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"
}
},
"button": {
"font-family": "Arial, sans-serif",
":hover": {
"background-color": "#000000"
},
"background-color": "#000000",
":focus": {
"background-color": "#000000"
},
"border-radius": "40px",
"padding-left": "17px",
"padding-right": "17px"
},
"price": {
"font-size": "17px"
},
"compareAt": {
"font-size": "14.45px"
},
"unitPrice": {
"font-size": "14.45px"
}
},
"text": {
"button": "Add to cart"
}
},
"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-family": "Arial, sans-serif",
":hover": {
"background-color": "#000000"
},
"background-color": "#000000",
":focus": {
"background-color": "#000000"
},
"border-radius": "40px",
"padding-left": "17px",
"padding-right": "17px"
},
"price": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "18px",
"color": "#4c4c4c"
},
"compareAt": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "15.299999999999999px",
"color": "#4c4c4c"
},
"unitPrice": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "15.299999999999999px",
"color": "#4c4c4c"
}
},
"text": {
"button": "Add to cart"
}
},
"option": {},
"cart": {
"styles": {
"button": {
"font-family": "Arial, sans-serif",
":hover": {
"background-color": "#000000"
},
"background-color": "#000000",
":focus": {
"background-color": "#000000"
},
"border-radius": "40px"
},
"title": {
"color": "#454141"
},
"header": {
"color": "#454141"
},
"lineItems": {
"color": "#454141"
},
"subtotalText": {
"color": "#454141"
},
"subtotal": {
"color": "#454141"
},
"notice": {
"color": "#454141"
},
"currency": {
"color": "#454141"
},
"close": {
"color": "#454141",
":hover": {
"color": "#454141"
}
},
"empty": {
"color": "#454141"
},
"noteDescription": {
"color": "#454141"
},
"discountText": {
"color": "#454141"
},
"discountIcon": {
"fill": "#454141"
},
"discountAmount": {
"color": "#454141"
}
},
"text": {
"title": "Cesta de compra",
"total": "Subtotal",
"empty": "Su carrito esta vacío.",
"notice": "El envío y los códigos descuento podrá observarlo en la siguiente pantalla.",
"button": "PAGO",
"noteDescription": "Notas del pedido"
},
"contents": {
"note": true
}
},
"toggle": {
"styles": {
"toggle": {
"font-family": "Arial, sans-serif",
"background-color": "#000000",
":hover": {
"background-color": "#000000"
},
":focus": {
"background-color": "#000000"
}
}
}
},
"lineItem": {
"styles": {
"variantTitle": {
"color": "#454141"
},
"title": {
"color": "#454141"
},
"price": {
"color": "#454141"
},
"fullPrice": {
"color": "#454141"
},
"discount": {
"color": "#454141"
},
"discountIcon": {
"fill": "#454141"
},
"quantity": {
"color": "#454141"
},
"quantityIncrement": {
"color": "#454141",
"border-color": "#454141"
},
"quantityDecrement": {
"color": "#454141",
"border-color": "#454141"
},
"quantityInput": {
"color": "#454141",
"border-color": "#454141"
}
}
}
},
});
});
}
})();
/*]]>*/
</script>