• Resolved broodi

    (@broodi)


    I am able to populate the 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.

    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.

    https://wordpress.org/plugins/shopify-ecommerce-shopping-cart/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shopify

    (@shopify)

    Hi,

    Have you checked into this forum post: https://support.advancedcustomfields.com/forums/topic/create-shortcode-from-a-repeater-field/

    there’s a very specific way to add shortcodes to a repeater. Follow these instructions and let me know if you can get it to work.

    cheers,

    Thread Starter broodi

    (@broodi)

    The short code is working. It is creating the divs. BUT the widgets.shopify.com assets are not getting included. if I add the button the content(), then the other 2 buttons appear.

    Thread Starter broodi

    (@broodi)

    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&#8221; 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.

    hopefully an official patch is coming.

    Plugin Author Shopify

    (@shopify)

    oh, that was really smart. Great fix.

    I’ll share this with the product team, hopefully we can get a fix in for you.

    Thanks for following up!

    Thread Starter broodi

    (@broodi)

    sweet. great plugin. thanks for the follow-up

    Thread Starter broodi

    (@broodi)

    Has this been officially fixed, because my previous fix kills the cart button functionality? It looks like if I take out my “fix” code. everything works normally.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘ACF PRO repeater’ is closed to new replies.