(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: 'wilfrid-laurier-university-student-publications.myshopify.com', storefrontAccessToken: 'fa008e9504bf8ed652f86985a95ca2c9', }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent('product', { id: '5660240183454', node: document.getElementById('product-component-1599252934962'), moneyFormat: '%24%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": "28px", "color": "#535151" }, "button": { "font-size": "17px", "padding-top": "16.5px", "padding-bottom": "16.5px", ":hover": { "background-color": "#000000" }, "background-color": "#000000", ":focus": { "background-color": "#000000" }, "border-radius": "10px", "padding-left": "65px", "padding-right": "65px" }, "quantityInput": { "font-size": "17px", "padding-top": "16.5px", "padding-bottom": "16.5px" }, "price": { "font-size": "20px" }, "compareAt": { "font-size": "17px" }, "unitPrice": { "font-size": "17px" } }, "buttonDestination": "checkout", "layout": "horizontal", "contents": { "img": false, "imgWithCarousel": true, "button": false, "buttonWithQuantity": true, "description": true }, "width": "100%", "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": "17px", "padding-top": "16.5px", "padding-bottom": "16.5px", ":hover": { "background-color": "#000000" }, "background-color": "#000000", ":focus": { "background-color": "#000000" }, "border-radius": "10px", "padding-left": "65px", "padding-right": "65px" }, "quantityInput": { "font-size": "17px", "padding-top": "16.5px", "padding-bottom": "16.5px" } }, "text": { "button": "Add to cart" } }, "cart": { "styles": { "button": { "font-size": "17px", "padding-top": "16.5px", "padding-bottom": "16.5px", ":hover": { "background-color": "#000000" }, "background-color": "#000000", ":focus": { "background-color": "#000000" }, "border-radius": "10px" } }, "text": { "total": "Subtotal", "button": "Checkout" }, "contents": { "note": true } }, "toggle": { "styles": { "toggle": { "background-color": "#000000", ":hover": { "background-color": "#000000" }, ":focus": { "background-color": "#000000" } }, "count": { "font-size": "17px" } } } }, }); }); } })(); /*]]>*/