Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id='product-component-1574444048968'></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: 'equine74-de.myshopify.com',
- storefrontAccessToken: '73d7a736950a41d8e14b70e00c19ecfa',
- });
- ShopifyBuy.UI.onReady(client).then(function (ui) {
- ui.createComponent('product', {
- id: '10052597768',
- node: document.getElementById('product-component-1574444048968'),
- moneyFormat: '%7B%7B%20amount_with_comma_separator%20%7D%7D%20%E2%82%AC',
- options: {
- "product": {
- "styles": {
- "product": {
- "@media (min-width: 601px)": {
- "max-width": "calc(25% - 20px)",
- "margin-left": "20px",
- "margin-bottom": "50px"
- }
- },
- "button": {
- "font-size": "16px",
- "padding-top": "16px",
- "padding-bottom": "16px",
- "padding-left": "26px",
- "padding-right": "26px"
- },
- "quantityInput": {
- "font-size": "16px",
- "padding-top": "16px",
- "padding-bottom": "16px"
- }
- },
- "buttonDestination": "checkout",
- "contents": {
- "img": false,
- "title": false,
- "price": false
- },
- "text": {
- "button": "Buy now"
- }
- },
- "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": "16px",
- "padding-top": "16px",
- "padding-bottom": "16px",
- "padding-left": "26px",
- "padding-right": "26px"
- },
- "quantityInput": {
- "font-size": "16px",
- "padding-top": "16px",
- "padding-bottom": "16px"
- }
- }
- },
- "cart": {
- "styles": {
- "button": {
- "font-size": "16px",
- "padding-top": "16px",
- "padding-bottom": "16px"
- },
- "title": {
- "color": "#4c4c4c"
- },
- "header": {
- "color": "#4c4c4c"
- },
- "lineItems": {
- "color": "#4c4c4c"
- },
- "subtotalText": {
- "color": "#4c4c4c"
- },
- "subtotal": {
- "color": "#4c4c4c"
- },
- "notice": {
- "color": "#4c4c4c"
- },
- "currency": {
- "color": "#4c4c4c"
- },
- "close": {
- "color": "#4c4c4c",
- ":hover": {
- "color": "#4c4c4c"
- }
- },
- "empty": {
- "color": "#4c4c4c"
- },
- "noteDescription": {
- "color": "#4c4c4c"
- },
- "discountText": {
- "color": "#4c4c4c"
- },
- "discountIcon": {
- "fill": "#4c4c4c"
- },
- "discountAmount": {
- "color": "#4c4c4c"
- }
- }
- },
- "toggle": {
- "styles": {
- "count": {
- "font-size": "16px"
- }
- }
- },
- "lineItem": {
- "styles": {
- "variantTitle": {
- "color": "#4c4c4c"
- },
- "title": {
- "color": "#4c4c4c"
- },
- "price": {
- "color": "#4c4c4c"
- },
- "fullPrice": {
- "color": "#4c4c4c"
- },
- "discount": {
- "color": "#4c4c4c"
- },
- "discountIcon": {
- "fill": "#4c4c4c"
- },
- "quantity": {
- "color": "#4c4c4c"
- },
- "quantityIncrement": {
- "color": "#4c4c4c",
- "border-color": "#4c4c4c"
- },
- "quantityDecrement": {
- "color": "#4c4c4c",
- "border-color": "#4c4c4c"
- },
- "quantityInput": {
- "color": "#4c4c4c",
- "border-color": "#4c4c4c"
- }
- }
- }
- },
- });
- });
- }
- })();
- /*]]>*/
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement