{"product_id":"freshbox-collector-series-romeo-y-julieta","title":"FreshBox™ Collector Series – Romeo y Julieta","description":"\u003ch1\u003easdasd\u003c\/h1\u003e\u003cdiv id=\"product-component-1775607625056\"\u003e\u003c\/div\u003e\n\u003cscript type=\"text\/javascript\"\u003e\n\/*\u003c![CDATA[*\/\n(function () {\n  var scriptURL = 'https:\/\/sdks.shopifycdn.com\/buy-button\/latest\/buy-button-storefront.min.js';\n  if (window.ShopifyBuy) {\n    if (window.ShopifyBuy.UI) {\n      ShopifyBuyInit();\n    } else {\n      loadScript();\n    }\n  } else {\n    loadScript();\n  }\n  function loadScript() {\n    var script = document.createElement('script');\n    script.async = true;\n    script.src = scriptURL;\n    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);\n    script.onload = ShopifyBuyInit;\n  }\n  function ShopifyBuyInit() {\n    var client = ShopifyBuy.buildClient({\n      domain: 'freshboxcigar.myshopify.com',\n      storefrontAccessToken: 'd9efb075d614561bd62f1970df1e0677',\n    });\n    ShopifyBuy.UI.onReady(client).then(function (ui) {\n      ui.createComponent('product', {\n        id: '8339808976930',\n        node: document.getElementById('product-component-1775607625056'),\n        moneyFormat: '%24%7B%7Bamount%7D%7D',\n        options: {\n          \"product\": {\n            \"styles\": {\n              \"product\": {\n                \"@media (min-width: 601px)\": {\n                  \"max-width\": \"calc(25% - 20px)\",\n                  \"margin-left\": \"20px\",\n                  \"margin-bottom\": \"50px\"\n                }\n              }\n            },\n            \/\/ 1. OVERRIDE DIRECT \"BUY NOW\" CHECKOUT\n            \"buttonDestination\": function(component) {\n              component._userEvent('openCheckout');\n              var input = {\n                lineItems: [{\n                  variantId: component.selectedVariant.id,\n                  quantity: component.selectedQuantity,\n                }]\n              };\n              component.props.client.checkout.create(input).then(function(checkout) {\n                var checkoutUrl = checkout.webUrl;\n                checkoutUrl += (checkoutUrl.indexOf('?') === -1 ? '?' : '\u0026') + 'discount=KVP2XDSDZG93';\n                window.location.href = checkoutUrl;\n              });\n            },\n            \"text\": {\n              \"button\": \"Buy now\"\n            }\n          },\n          \"productSet\": {\n            \"styles\": {\n              \"products\": {\n                \"@media (min-width: 601px)\": {\n                  \"margin-left\": \"-20px\"\n                }\n              }\n            }\n          },\n          \"modalProduct\": {\n            \"contents\": {\n              \"img\": false,\n              \"imgWithCarousel\": true,\n              \"button\": false,\n              \"buttonWithQuantity\": true\n            },\n            \"styles\": {\n              \"product\": {\n                \"@media (min-width: 601px)\": {\n                  \"max-width\": \"100%\",\n                  \"margin-left\": \"0px\",\n                  \"margin-bottom\": \"0px\"\n                }\n              }\n            },\n            \"text\": {\n              \"button\": \"Add to cart\"\n            }\n          },\n          \"option\": {},\n          \"cart\": {\n            \/\/ 2. OVERRIDE CART DRAWER CHECKOUT\n            \"events\": {\n              \"afterInit\": function (cart) {\n                cart.onCheckout = function () {\n                  var checkoutUrl = cart.model.webUrl;\n                  checkoutUrl += (checkoutUrl.indexOf('?') === -1 ? '?' : '\u0026') + 'discount=KVP2XDSDZG93';\n                  window.location.href = checkoutUrl;\n                };\n              }\n            },\n            \"text\": {\n              \"total\": \"Subtotal\",\n              \"button\": \"Checkout\"\n            }\n          },\n          \"toggle\": {}\n        }\n      });\n    });\n  }\n})();\n\/*]]\u003e*\/\n\u003c\/script\u003e","brand":"FreshBox™","offers":[{"title":"Default Title","offer_id":51867401158935,"sku":"FBX-COL-ROMJUL","price":99.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0860\/9438\/1335\/files\/RomeoFront.jpg?v=1769728090","url":"https:\/\/cigarpros.com\/products\/freshbox-collector-series-romeo-y-julieta","provider":"CigarPros","version":"1.0","type":"link"}