Support

Account

Home Forums ACF PRO Shopify BuyNow shortcode

Solved

Shopify BuyNow shortcode

  • I am able to populate a Shopify Short Code (via the Add Product button) AND it creates the div, but it does not display the buttons.

    I’m adding the product through the ACF PRO repeater within a Visual/Text WYSIWYG field.

    It appears that some java-script is not getting loaded because the buttons appear to be invisible.

    It works fine in the content(), just not within the repeater.

    I’m using ACF PRO and it is up-to-date

    Is there any code I can add to the page to make this work?

    link: page

    the buttons should appear below “Adults – $25” & “Kids – $10” on the right side.

  • OK I have solved this. although it is only a patch.
    it doesn’t have any thing to do with the repeater. it happens in any custom field. It appears that Shopify/Wordpress is only looking for the main content() to add the javascript include file. I simply hard coded:

    <script id=”ShopifyEmbedScript” src=”https://widgets.shopifyapps.com/assets/widgets/embed/client.js” type=”text/javascript”></script>

    into the page.

    it works fine, but if you have a button in content AND a button in a custom field, you will have included the javascript twice.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.