Advertisement
Guest User

dtl-6kg

a guest
Nov 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. <div id='product-component-1574444048968'></div>
  2. <script type="text/javascript">
  3. /*<![CDATA[*/
  4. (function () {
  5. var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  6. if (window.ShopifyBuy) {
  7. if (window.ShopifyBuy.UI) {
  8. ShopifyBuyInit();
  9. } else {
  10. loadScript();
  11. }
  12. } else {
  13. loadScript();
  14. }
  15. function loadScript() {
  16. var script = document.createElement('script');
  17. script.async = true;
  18. script.src = scriptURL;
  19. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
  20. script.onload = ShopifyBuyInit;
  21. }
  22. function ShopifyBuyInit() {
  23. var client = ShopifyBuy.buildClient({
  24. domain: 'equine74-de.myshopify.com',
  25. storefrontAccessToken: '73d7a736950a41d8e14b70e00c19ecfa',
  26. });
  27. ShopifyBuy.UI.onReady(client).then(function (ui) {
  28. ui.createComponent('product', {
  29. id: '10052597768',
  30. node: document.getElementById('product-component-1574444048968'),
  31. moneyFormat: '%7B%7B%20amount_with_comma_separator%20%7D%7D%20%E2%82%AC',
  32. options: {
  33. "product": {
  34. "styles": {
  35. "product": {
  36. "@media (min-width: 601px)": {
  37. "max-width": "calc(25% - 20px)",
  38. "margin-left": "20px",
  39. "margin-bottom": "50px"
  40. }
  41. },
  42. "button": {
  43. "font-size": "16px",
  44. "padding-top": "16px",
  45. "padding-bottom": "16px",
  46. "padding-left": "26px",
  47. "padding-right": "26px"
  48. },
  49. "quantityInput": {
  50. "font-size": "16px",
  51. "padding-top": "16px",
  52. "padding-bottom": "16px"
  53. }
  54. },
  55. "buttonDestination": "checkout",
  56. "contents": {
  57. "img": false,
  58. "title": false,
  59. "price": false
  60. },
  61. "text": {
  62. "button": "Buy now"
  63. }
  64. },
  65. "productSet": {
  66. "styles": {
  67. "products": {
  68. "@media (min-width: 601px)": {
  69. "margin-left": "-20px"
  70. }
  71. }
  72. }
  73. },
  74. "modalProduct": {
  75. "contents": {
  76. "img": false,
  77. "imgWithCarousel": true,
  78. "button": false,
  79. "buttonWithQuantity": true
  80. },
  81. "styles": {
  82. "product": {
  83. "@media (min-width: 601px)": {
  84. "max-width": "100%",
  85. "margin-left": "0px",
  86. "margin-bottom": "0px"
  87. }
  88. },
  89. "button": {
  90. "font-size": "16px",
  91. "padding-top": "16px",
  92. "padding-bottom": "16px",
  93. "padding-left": "26px",
  94. "padding-right": "26px"
  95. },
  96. "quantityInput": {
  97. "font-size": "16px",
  98. "padding-top": "16px",
  99. "padding-bottom": "16px"
  100. }
  101. }
  102. },
  103. "cart": {
  104. "styles": {
  105. "button": {
  106. "font-size": "16px",
  107. "padding-top": "16px",
  108. "padding-bottom": "16px"
  109. },
  110. "title": {
  111. "color": "#4c4c4c"
  112. },
  113. "header": {
  114. "color": "#4c4c4c"
  115. },
  116. "lineItems": {
  117. "color": "#4c4c4c"
  118. },
  119. "subtotalText": {
  120. "color": "#4c4c4c"
  121. },
  122. "subtotal": {
  123. "color": "#4c4c4c"
  124. },
  125. "notice": {
  126. "color": "#4c4c4c"
  127. },
  128. "currency": {
  129. "color": "#4c4c4c"
  130. },
  131. "close": {
  132. "color": "#4c4c4c",
  133. ":hover": {
  134. "color": "#4c4c4c"
  135. }
  136. },
  137. "empty": {
  138. "color": "#4c4c4c"
  139. },
  140. "noteDescription": {
  141. "color": "#4c4c4c"
  142. },
  143. "discountText": {
  144. "color": "#4c4c4c"
  145. },
  146. "discountIcon": {
  147. "fill": "#4c4c4c"
  148. },
  149. "discountAmount": {
  150. "color": "#4c4c4c"
  151. }
  152. }
  153. },
  154. "toggle": {
  155. "styles": {
  156. "count": {
  157. "font-size": "16px"
  158. }
  159. }
  160. },
  161. "lineItem": {
  162. "styles": {
  163. "variantTitle": {
  164. "color": "#4c4c4c"
  165. },
  166. "title": {
  167. "color": "#4c4c4c"
  168. },
  169. "price": {
  170. "color": "#4c4c4c"
  171. },
  172. "fullPrice": {
  173. "color": "#4c4c4c"
  174. },
  175. "discount": {
  176. "color": "#4c4c4c"
  177. },
  178. "discountIcon": {
  179. "fill": "#4c4c4c"
  180. },
  181. "quantity": {
  182. "color": "#4c4c4c"
  183. },
  184. "quantityIncrement": {
  185. "color": "#4c4c4c",
  186. "border-color": "#4c4c4c"
  187. },
  188. "quantityDecrement": {
  189. "color": "#4c4c4c",
  190. "border-color": "#4c4c4c"
  191. },
  192. "quantityInput": {
  193. "color": "#4c4c4c",
  194. "border-color": "#4c4c4c"
  195. }
  196. }
  197. }
  198. },
  199. });
  200. });
  201. }
  202. })();
  203. /*]]>*/
  204. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement