Advertisement
TheMonetizr

Daddy Long Legs 2

Apr 28th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id='product-component-9d7012d8f8d'></div>
  2. <script type="text/javascript">
  3. /*<![CDATA[*/
  4.  
  5. (function () {
  6.   var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  7.   if (window.ShopifyBuy) {
  8.     if (window.ShopifyBuy.UI) {
  9.       ShopifyBuyInit();
  10.     } else {
  11.       loadScript();
  12.     }
  13.   } else {
  14.     loadScript();
  15.   }
  16.  
  17.   function loadScript() {
  18.     var script = document.createElement('script');
  19.     script.async = true;
  20.     script.src = scriptURL;
  21.     (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
  22.     script.onload = ShopifyBuyInit;
  23.   }
  24.  
  25.   function ShopifyBuyInit() {
  26.     var client = ShopifyBuy.buildClient({
  27.       domain: 'instagramprinted.myshopify.com',
  28.       apiKey: 'dd7a9a8a2b5f5feddb15ca1b78e7f8cc',
  29.       appId: '6',
  30.     });
  31.  
  32.     ShopifyBuy.UI.onReady(client).then(function (ui) {
  33.       ui.createComponent('product', {
  34.         id: [10462308234],
  35.         node: document.getElementById('product-component-9d7012d8f8d'),
  36.         moneyFormat: '%24%7B%7Bamount%7D%7D',
  37.         options: {
  38.   "product": {
  39.     "layout": "horizontal",
  40.     "variantId": "all",
  41.     "width": "100%",
  42.     "contents": {
  43.       "img": false,
  44.       "imgWithCarousel": true,
  45.       "variantTitle": false,
  46.       "description": true,
  47.       "buttonWithQuantity": false,
  48.       "quantity": false
  49.     },
  50.     "styles": {
  51.       "product": {
  52.         "text-align": "left",
  53.         "@media (min-width: 601px)": {
  54.           "max-width": "100%",
  55.           "margin-left": "0",
  56.           "margin-bottom": "50px"
  57.         }
  58.       },
  59.       "title": {
  60.         "font-size": "26px"
  61.       },
  62.       "price": {
  63.         "font-size": "18px"
  64.       },
  65.       "compareAt": {
  66.         "font-size": "15px"
  67.       }
  68.     }
  69.   },
  70.   "cart": {
  71.     "contents": {
  72.       "button": true
  73.     },
  74.     "styles": {
  75.       "footer": {
  76.         "background-color": "#ffffff"
  77.       }
  78.     }
  79.   },
  80.   "modalProduct": {
  81.     "contents": {
  82.       "img": false,
  83.       "imgWithCarousel": true,
  84.       "variantTitle": false,
  85.       "buttonWithQuantity": true,
  86.       "button": false,
  87.       "quantity": false
  88.     },
  89.     "styles": {
  90.       "product": {
  91.         "@media (min-width: 601px)": {
  92.           "max-width": "100%",
  93.           "margin-left": "0px",
  94.           "margin-bottom": "0px"
  95.         }
  96.       }
  97.     }
  98.   },
  99.   "productSet": {
  100.     "styles": {
  101.       "products": {
  102.         "@media (min-width: 601px)": {
  103.           "margin-left": "-20px"
  104.         }
  105.       }
  106.     }
  107.   }
  108. }
  109.       });
  110.     });
  111.   }
  112. })();
  113. /*]]>*/
  114. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement