Advertisement
Guest User

dtl-2kg

a guest
Nov 22nd, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. <div id='product-component-1574444452801'></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: '10191185416',
  30. node: document.getElementById('product-component-1574444452801'),
  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. ":hover": {
  47. "background-color": "#dd751f"
  48. },
  49. "background-color": "#f58222",
  50. ":focus": {
  51. "background-color": "#dd751f"
  52. },
  53. "padding-left": "26px",
  54. "padding-right": "26px"
  55. },
  56. "quantityInput": {
  57. "font-size": "16px",
  58. "padding-top": "16px",
  59. "padding-bottom": "16px"
  60. }
  61. },
  62. "buttonDestination": "checkout",
  63. "contents": {
  64. "img": false,
  65. "title": false,
  66. "price": false
  67. },
  68. "text": {
  69. "button": "Jetzt kaufen"
  70. }
  71. },
  72. "productSet": {
  73. "styles": {
  74. "products": {
  75. "@media (min-width: 601px)": {
  76. "margin-left": "-20px"
  77. }
  78. }
  79. }
  80. },
  81. "modalProduct": {
  82. "contents": {
  83. "img": false,
  84. "imgWithCarousel": true,
  85. "button": false,
  86. "buttonWithQuantity": true
  87. },
  88. "styles": {
  89. "product": {
  90. "@media (min-width: 601px)": {
  91. "max-width": "100%",
  92. "margin-left": "0px",
  93. "margin-bottom": "0px"
  94. }
  95. },
  96. "button": {
  97. "font-size": "16px",
  98. "padding-top": "16px",
  99. "padding-bottom": "16px",
  100. ":hover": {
  101. "background-color": "#dd751f"
  102. },
  103. "background-color": "#f58222",
  104. ":focus": {
  105. "background-color": "#dd751f"
  106. },
  107. "padding-left": "26px",
  108. "padding-right": "26px"
  109. },
  110. "quantityInput": {
  111. "font-size": "16px",
  112. "padding-top": "16px",
  113. "padding-bottom": "16px"
  114. }
  115. }
  116. },
  117. "cart": {
  118. "styles": {
  119. "button": {
  120. "font-size": "16px",
  121. "padding-top": "16px",
  122. "padding-bottom": "16px",
  123. ":hover": {
  124. "background-color": "#dd751f"
  125. },
  126. "background-color": "#f58222",
  127. ":focus": {
  128. "background-color": "#dd751f"
  129. }
  130. },
  131. "title": {
  132. "color": "#4c4c4c"
  133. },
  134. "header": {
  135. "color": "#4c4c4c"
  136. },
  137. "lineItems": {
  138. "color": "#4c4c4c"
  139. },
  140. "subtotalText": {
  141. "color": "#4c4c4c"
  142. },
  143. "subtotal": {
  144. "color": "#4c4c4c"
  145. },
  146. "notice": {
  147. "color": "#4c4c4c"
  148. },
  149. "currency": {
  150. "color": "#4c4c4c"
  151. },
  152. "close": {
  153. "color": "#4c4c4c",
  154. ":hover": {
  155. "color": "#4c4c4c"
  156. }
  157. },
  158. "empty": {
  159. "color": "#4c4c4c"
  160. },
  161. "noteDescription": {
  162. "color": "#4c4c4c"
  163. },
  164. "discountText": {
  165. "color": "#4c4c4c"
  166. },
  167. "discountIcon": {
  168. "fill": "#4c4c4c"
  169. },
  170. "discountAmount": {
  171. "color": "#4c4c4c"
  172. }
  173. }
  174. },
  175. "toggle": {
  176. "styles": {
  177. "toggle": {
  178. "background-color": "#f58222",
  179. ":hover": {
  180. "background-color": "#dd751f"
  181. },
  182. ":focus": {
  183. "background-color": "#dd751f"
  184. }
  185. },
  186. "count": {
  187. "font-size": "16px"
  188. }
  189. }
  190. },
  191. "lineItem": {
  192. "styles": {
  193. "variantTitle": {
  194. "color": "#4c4c4c"
  195. },
  196. "title": {
  197. "color": "#4c4c4c"
  198. },
  199. "price": {
  200. "color": "#4c4c4c"
  201. },
  202. "fullPrice": {
  203. "color": "#4c4c4c"
  204. },
  205. "discount": {
  206. "color": "#4c4c4c"
  207. },
  208. "discountIcon": {
  209. "fill": "#4c4c4c"
  210. },
  211. "quantity": {
  212. "color": "#4c4c4c"
  213. },
  214. "quantityIncrement": {
  215. "color": "#4c4c4c",
  216. "border-color": "#4c4c4c"
  217. },
  218. "quantityDecrement": {
  219. "color": "#4c4c4c",
  220. "border-color": "#4c4c4c"
  221. },
  222. "quantityInput": {
  223. "color": "#4c4c4c",
  224. "border-color": "#4c4c4c"
  225. }
  226. }
  227. }
  228. },
  229. });
  230. });
  231. }
  232. })();
  233. /*]]>*/
  234. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement