Buy Button testing

} 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: 'xsdhmy-pj.myshopify.com', storefrontAccessToken: '8ffe22555461ddf8d093786f7e414fd5', }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent('product', { id: '15086557987203', node: document.getElementById('product-component-1742989988362'), moneyFormat: '%C2%A3%7B%7Bamount%7D%7D', options: { "product": { "styles": { "product": { "@media (min-width: 601px)": { "max-width": "100%", "margin-left": "0", "margin-bottom": "50px" }, "text-align": "left" }, "title": { "font-size": "26px", "color": "#000000" }, "button": { "font-family": "PT Sans, sans-serif", "font-weight": "bold", "color": "#fffdfd", ":hover": { "color": "#fffdfd", "background-color": "#39443e" }, "background-color": "#3f4b45", ":focus": { "background-color": "#39443e" }, "border-radius": "0px", "padding-left": "38px", "padding-right": "38px" }, "price": { "font-size": "18px", "color": "#0c0c0c" }, "compareAt": { "font-size": "15.299999999999999px", "color": "#0c0c0c" }, "unitPrice": { "font-size": "15.299999999999999px", "color": "#0c0c0c" }, "description": { "color": "#000000" } }, "buttonDestination": "checkout", "layout": "horizontal", "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true, "description": true }, "width": "100%", "text": { "button": "Buy now" }, "googleFonts": [ "PT Sans" ] }, "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": "PT Sans, sans-serif", "font-weight": "bold", "color": "#fffdfd", ":hover": { "color": "#fffdfd", "background-color": "#39443e" }, "background-color": "#3f4b45", ":focus": { "background-color": "#39443e" }, "border-radius": "0px", "padding-left": "38px", "padding-right": "38px" }, "title": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "bold", "font-size": "26px", "color": "#4c4c4c" }, "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" }, "description": { "font-family": "Helvetica Neue, sans-serif", "font-weight": "normal", "font-size": "14px", "color": "#4c4c4c" } }, "googleFonts": [ "PT Sans" ], "text": { "button": "Add to cart" } }, "option": {}, "cart": { "styles": { "button": { "font-family": "PT Sans, sans-serif", "font-weight": "bold", "color": "#fffdfd", ":hover": { "color": "#fffdfd", "background-color": "#39443e" }, "background-color": "#3f4b45", ":focus": { "background-color": "#39443e" }, "border-radius": "0px" }, "title": { "color": "#101010" }, "header": { "color": "#101010" }, "lineItems": { "color": "#101010" }, "subtotalText": { "color": "#101010" }, "subtotal": { "color": "#101010" }, "notice": { "color": "#101010" }, "currency": { "color": "#101010" }, "close": { "color": "#101010", ":hover": { "color": "#101010" } }, "empty": { "color": "#101010" }, "noteDescription": { "color": "#101010" }, "discountText": { "color": "#101010" }, "discountIcon": { "fill": "#101010" }, "discountAmount": { "color": "#101010" } }, "text": { "total": "Subtotal", "notice": "Shipping for PRE-ORDER products is going to start in 3-4 weeks", "button": "Checkout" }, "googleFonts": [ "PT Sans" ] }, "toggle": { "styles": { "toggle": { "font-family": "PT Sans, sans-serif", "font-weight": "bold", "background-color": "#3f4b45", ":hover": { "background-color": "#39443e" }, ":focus": { "background-color": "#39443e" } }, "count": { "color": "#fffdfd", ":hover": { "color": "#fffdfd" } }, "iconPath": { "fill": "#fffdfd" } }, "googleFonts": [ "PT Sans" ] }, "lineItem": { "styles": { "variantTitle": { "color": "#101010" }, "title": { "color": "#101010" }, "price": { "color": "#101010" }, "fullPrice": { "color": "#101010" }, "discount": { "color": "#101010" }, "discountIcon": { "fill": "#101010" }, "quantity": { "color": "#101010" }, "quantityIncrement": { "color": "#101010", "border-color": "#101010" }, "quantityDecrement": { "color": "#101010", "border-color": "#101010" }, "quantityInput": { "color": "#101010", "border-color": "#101010" } } } }, }); }); } })(); /*]]>*/