Hi,
This code doesn’t seem to work. I’ve attached a screenshot to show you how it looks.
Could you please tell me how to present the products in the following embedded code in a single row (second product next to the first one), instead of two rows? It’s live now at http://sparkandspoon.com/shop/
<div id=“product-component-19ef8476ddf”></div>
<script type=“text/javascript”>
/<![CDATA[/ (function () { var scriptURL = ‘https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js’; if (window.ShopifyBuy) { if (window.ShopifyBuy.UI) { ShopifyBuyInit(); } else { loadScript(); } } else { loadScript(); } function loadScript() { var script = document.createElement(‘script’); script.async = true; script.src = scriptURL; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(script); script.onload = ShopifyBuyInit; } function ShopifyBuyInit() { var client = ShopifyBuy.buildClient({ domain: ‘spark-and-spoon.myshopify.com’, apiKey: ‘e0a54b6423948cce89879897df9d711f’, appId: ‘6’, }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent(‘product’, { id: [629103001663], node: document.getElementById(‘product-component-19ef8476ddf’), moneyFormat: ‘%24%7B%7Bamount%7D%7D’, options: { “product”: { “buttonDestination”: “modal”, “variantId”: “all”, “contents”: { “imgWithCarousel”: false, “variantTitle”: false, “options”: false, “description”: false, “buttonWithQuantity”: false, “quantity”: false }, “text”: { “button”: “VIEW PRODUCT” }, “styles”: { “product”: { “@media (min-width: 601px)”: { “max-width”: “100%”, “margin-left”: “0”, “margin-bottom”: “50px” } }, “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } }, “compareAt”: { “font-size”: “12px” } } }, “cart”: { “contents”: { “button”: true }, “styles”: { “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } }, “footer”: { “background-color”: “#ffffff” } } }, “modalProduct”: { “contents”: { “img”: false, “imgWithCarousel”: true, “variantTitle”: false, “buttonWithQuantity”: true, “button”: false, “quantity”: false }, “styles”: { “product”: { “@media (min-width: 601px)”: { “max-width”: “100%”, “margin-left”: “0px”, “margin-bottom”: “0px” } }, “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } } } }, “toggle”: { “styles”: { “toggle”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } } } }, “productSet”: { “styles”: { “products”: { “@media (min-width: 601px)”: { “margin-left”: “-20px” } } } } } }); }); } })(); /]]>/
</script>
<div id=“product-component-ca77a784d09”></div>
<script type=“text/javascript”>
/<![CDATA[/ (function () { var scriptURL = ‘https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js’; if (window.ShopifyBuy) { if (window.ShopifyBuy.UI) { ShopifyBuyInit(); } else { loadScript(); } } else { loadScript(); } function loadScript() { var script = document.createElement(‘script’); script.async = true; script.src = scriptURL; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(script); script.onload = ShopifyBuyInit; } function ShopifyBuyInit() { var client = ShopifyBuy.buildClient({ domain: ‘spark-and-spoon.myshopify.com’, apiKey: ‘e0a54b6423948cce89879897df9d711f’, appId: ‘6’, }); ShopifyBuy.UI.onReady(client).then(function (ui) { ui.createComponent(‘product’, { id: [629889630271], node: document.getElementById(‘product-component-ca77a784d09’), moneyFormat: ‘%24%7B%7Bamount%7D%7D’, options: { “product”: { “buttonDestination”: “modal”, “variantId”: “all”, “contents”: { “imgWithCarousel”: false, “variantTitle”: false, “options”: false, “description”: false, “buttonWithQuantity”: false, “quantity”: false }, “text”: { “button”: “VIEW PRODUCT” }, “styles”: { “product”: { “@media (min-width: 601px)”: { “max-width”: “100%”, “margin-left”: “0”, “margin-bottom”: “50px” } }, “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } }, “compareAt”: { “font-size”: “12px” } } }, “cart”: { “contents”: { “button”: true }, “styles”: { “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } }, “footer”: { “background-color”: “#ffffff” } } }, “modalProduct”: { “contents”: { “img”: false, “imgWithCarousel”: true, “variantTitle”: false, “buttonWithQuantity”: true, “button”: false, “quantity”: false }, “styles”: { “product”: { “@media (min-width: 601px)”: { “max-width”: “100%”, “margin-left”: “0px”, “margin-bottom”: “0px” } }, “button”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } } } }, “toggle”: { “styles”: { “toggle”: { “background-color”: “#8fa50e”, “:hover”: { “background-color”: “#81950d” }, “:focus”: { “background-color”: “#81950d” } } } }, “productSet”: { “styles”: { “products”: { “@media (min-width: 601px)”: { “margin-left”: “-20px” } } } } } }); }); } })(); /]]>/
</script>