Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #461563

    Hi Guys,

    I would like to use Shopify’s “Create a buy button” feature. I took the generated HTML embed code and pasted it into the code block and it did not work. However, when I tried to paste it into the Default Editor>Text>Code it did work. So, I know the code is good, but it does not seem to play nicely with Advanced layout Editor>Code Block.

    Here is an example of the standard embed code format from Shopify:
    <div data-button_background_color=”7db461″ data-button_text_color=”ffffff” data-buy_button_text=”Add to cart” data-display_size=”compact” data-embed_type=”product” data-has_image=”true” data-product_handle=”test” data-product_name=”Test” data-redirect_to=”cart” data-shop=”modcabinetry.myshopify.com”></div>
    <script type=”text/javascript”>
    document.getElementById(‘ShopifyEmbedScript’) || document.write(‘<script type=”text/javascript” src=”https://widgets.shopifyapps.com/assets/widgets/embed/client.js&#8221; id=”ShopifyEmbedScript”><\/script>’);
    </script>
    <noscript>Buy Test</noscript>

    Can you please suggest how I can embed the button into Enfold?

    Taja

    #461723

    Hey Taja!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Cheers!
    Rikard

    #706838

    I’m currently looking to do this exact same thing. What was the solution?

    Thanks!

    #707021

    Hi @PabloStennett,

    We didn’t get any further since the original poster didn’t reply, on what page are you trying this and what problems are you having?

    Best regards,
    Rikard

    #707312

    I no longer need this feature for the time being so you can close this ticket.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘[Shopify] Embedding a Buy Button’ is closed to new replies.