Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <div id="product-component-1a432901f49"></div>
  2. <script type="text/javascript">// <![CDATA[
  3. (function () {
  4. var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
  5. if (window.ShopifyBuy) {
  6. if (window.ShopifyBuy.UI) {
  7. ShopifyBuyInit();
  8. } else {
  9. loadScript();
  10. }
  11. } else {
  12. loadScript();
  13. }
  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.  
  23. function ShopifyBuyInit() {
  24. var client = ShopifyBuy.buildClient({
  25. domain: 'uauimports.online',
  26. storefrontAccessToken: '0152a69de3f50a52cac5118db340ba91',
  27. });
  28.  
  29. ShopifyBuy.UI.onReady(client).then(function (ui) {
  30. ui.createComponent('product', {
  31. id: [4008628256877],
  32. node: document.getElementById('product-component-1a432901f49'),
  33. moneyFormat: 'R%24%20%7B%7Bamount_with_comma_separator%7D%7D',
  34. options: {
  35. "product": {
  36. "variantId": "all",
  37. "width": "500px",
  38. "contents": {
  39. "img": false,
  40. "imgWithCarousel": false,
  41. "title": false,
  42. "variantTitle": false,
  43. "price": false,
  44. "description": false,
  45. "buttonWithQuantity": false,
  46. "quantity": false
  47. },
  48. "text": {
  49. "button": "COMPRAR AGORA"
  50. },
  51. "styles": {
  52. "product": {
  53. "@media (min-width: 601px)": {
  54. "max-width": "100%",
  55. "margin-left": "0",
  56. "margin-bottom": "50px"
  57. }
  58. },
  59. "button": {
  60. "background-color": "#8a05be",
  61. "padding-left": "29px",
  62. "padding-right": "29px",
  63. ":hover": {
  64. "background-color": "#eb09ff"
  65. },
  66. ":focus": {
  67. "background-color": "#eb09ff"
  68. },
  69. "font-weight": "bold"
  70. },
  71. "variantTitle": {
  72. "font-family": "Avant Garde, sans-serif",
  73. "font-weight": "normal"
  74. },
  75. "description": {
  76. "font-family": "Avant Garde, sans-serif",
  77. "font-weight": "normal"
  78. },
  79. "price": {
  80. "font-family": "Avant Garde, sans-serif",
  81. "font-weight": "normal"
  82. },
  83. "compareAt": {
  84. "font-size": "12px",
  85. "font-family": "Avant Garde, sans-serif",
  86. "font-weight": "normal"
  87. }
  88. }
  89. },
  90. "cart": {
  91. "contents": {
  92. "button": true
  93. },
  94. "popup": false,
  95. "styles": {
  96. "button": {
  97. "background-color": "#8a05be",
  98. ":hover": {
  99. "background-color": "#eb09ff"
  100. },
  101. ":focus": {
  102. "background-color": "#eb09ff"
  103. },
  104. "font-weight": "bold"
  105. },
  106. "footer": {
  107. "background-color": "#ffffff"
  108. }
  109. }
  110. },
  111. "modalProduct": {
  112. "contents": {
  113. "img": false,
  114. "imgWithCarousel": true,
  115. "variantTitle": false,
  116. "buttonWithQuantity": true,
  117. "button": false,
  118. "quantity": false
  119. },
  120. "styles": {
  121. "product": {
  122. "@media (min-width: 601px)": {
  123. "max-width": "100%",
  124. "margin-left": "0px",
  125. "margin-bottom": "0px"
  126. }
  127. },
  128. "button": {
  129. "background-color": "#8a05be",
  130. "padding-left": "29px",
  131. "padding-right": "29px",
  132. ":hover": {
  133. "background-color": "#eb09ff"
  134. },
  135. ":focus": {
  136. "background-color": "#eb09ff"
  137. },
  138. "font-weight": "bold"
  139. },
  140. "variantTitle": {
  141. "font-family": "Avant Garde, sans-serif",
  142. "font-weight": "normal"
  143. },
  144. "description": {
  145. "font-family": "Avant Garde, sans-serif",
  146. "font-weight": "normal"
  147. },
  148. "price": {
  149. "font-family": "Avant Garde, sans-serif",
  150. "font-weight": "normal"
  151. },
  152. "compareAt": {
  153. "font-family": "Avant Garde, sans-serif",
  154. "font-weight": "normal"
  155. }
  156. }
  157. },
  158. "toggle": {
  159. "styles": {
  160. "toggle": {
  161. "background-color": "#8a05be",
  162. ":hover": {
  163. "background-color": "#eb09ff"
  164. },
  165. ":focus": {
  166. "background-color": "#eb09ff"
  167. },
  168. "font-weight": "bold"
  169. }
  170. }
  171. },
  172. "option": {
  173. "styles": {
  174. "label": {
  175. "font-family": "Avant Garde, sans-serif"
  176. },
  177. "select": {
  178. "font-family": "Avant Garde, sans-serif"
  179. }
  180. }
  181. },
  182. "productSet": {
  183. "styles": {
  184. "products": {
  185. "@media (min-width: 601px)": {
  186. "margin-left": "-20px"
  187. }
  188. }
  189. }
  190. }
  191. }
  192. });
  193. });
  194. }
  195. })();
  196. // ]]></script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement