Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id='product-component-801a8b97cde'></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: 'logick-workshop.myshopify.com',
- storefrontAccessToken: 'd80bbd6ba33ffc7d4c207b7b7a29fc49',
- });
- ShopifyBuy.UI.onReady(client).then(function (ui) {
- ui.createComponent('product', {
- id: [1502991679550],
- node: document.getElementById('product-component-801a8b97cde'),
- moneyFormat: '%24%7B%7Bamount%7D%7D',
- options: {
- "product": {
- "buttonDestination": "checkout",
- "variantId": "all",
- "width": "240px",
- "contents": {
- "img": false,
- "imgWithCarousel": false,
- "title": false,
- "variantTitle": false,
- "price": false,
- "description": false,
- "buttonWithQuantity": false,
- "quantity": false
- },
- "text": {
- "button": "BUY NOW"
- },
- "styles": {
- "product": {
- "text-align": "left",
- "@media (min-width: 601px)": {
- "max-width": "100%",
- "margin-left": "0",
- "margin-bottom": "50px"
- }
- },
- "button": {
- "background-color": "#000000",
- ":hover": {
- "background-color": "#000000"
- },
- ":focus": {
- "background-color": "#000000"
- },
- "font-weight": "normal"
- },
- "compareAt": {
- "font-size": "12px"
- }
- }
- },
- "cart": {
- "contents": {
- "button": true
- },
- "styles": {
- "button": {
- "background-color": "#000000",
- ":hover": {
- "background-color": "#000000"
- },
- ":focus": {
- "background-color": "#000000"
- },
- "font-weight": "normal"
- },
- "footer": {
- "background-color": "#ffffff"
- }
- }
- },
- "modalProduct": {
- "contents": {
- "img": false,
- "imgWithCarousel": true,
- "variantTitle": false,
- "buttonWithQuantity": true,
- "button": false,
- "quantity": false
- },
- "styles": {
- "product": {
- "@media (min-width: 601px)": {
- "max-width": "100%",
- "margin-left": "0px",
- "margin-bottom": "0px"
- }
- },
- "button": {
- "background-color": "#000000",
- ":hover": {
- "background-color": "#000000"
- },
- ":focus": {
- "background-color": "#000000"
- },
- "font-weight": "normal"
- }
- }
- },
- "toggle": {
- "styles": {
- "toggle": {
- "background-color": "#000000",
- ":hover": {
- "background-color": "#000000"
- },
- ":focus": {
- "background-color": "#000000"
- },
- "font-weight": "normal"
- }
- }
- },
- "productSet": {
- "styles": {
- "products": {
- "@media (min-width: 601px)": {
- "margin-left": "-20px"
- }
- }
- }
- }
- }
- });
- });
- }
- })();
- /*]]>*/
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement