• Hi

    I am having some issues with the buttons working randomly and I am struggling to find the issue.

    I went to the page above and the button was not working. I was troubleshooting and added the shortcode to a test page and it worked fine

    Then I went back to the original page and it now worked. Tried on another laptop, on chrome, edge and firefox and it didn’t work. Tried a tablet and it worked.

    I restarted my machine and it didn’t work again. Cleared website cache, didn’t work. Tried the dev page of the same url and it worked. Went to the live url and it worked. restarted laptop and it didn’t work

    This has been running for some time and been working and no changes on the site, new plugins etc. I have the latest version 1.9.13. I tried deactivating all plugins and no change. Does it work for you?

    shortcode:

    [accept_stripe_payment name=”The Alpine Kitchen Cookbook £35″ price=”38.00″ url=”https://www.thealpinekitchen.com/stripe-checkout-result/ button_text=”Buy Now £38″ currency=”GBP” shipping_address=”1″]

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter doriefish

    (@doriefish)

    Additional info.
    When I restart the laptop and go to the page, I see in the chrome status bar:

    Waiting for thealpinekitchen.com then nothing else when it doesn’t work.

    It isn’t loading the stripe javascript on initial load.

    Thread Starter doriefish

    (@doriefish)

    When I preview the page in the WP dashboard, I see the stripe calls.
    Refresh live page and it also make the stripe calls and it works

    Hopefully you can see the same!

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi. Are you using some kind of a page builder on your site? If yes, try to add compat_mode=”1″ option to your button or product shortcodes. E.g.

    [asp_product id=”123″ compat_mode=”1″]

    Thread Starter doriefish

    (@doriefish)

    Hello
    No I am not using a pagebuilder. Tried that, doesn’t fix it. If you go to the site does it work?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Nope.

    And the reason why it’s not working is because plugin’s javascript library is not being loaded on page. In most cases this is caused by page builders and is getting dealt with compat_mode=”1″ option.

    Try disabling your caching\minify\optimization plugins if you use those. If this isn’t helping, try to switch your theme to default and then switch off plugins one by one. This looks like a conflict and if we can figure out which plugin is causing it, I can try to look for some workarounds.

    Thread Starter doriefish

    (@doriefish)

    OK thanks I will have a play with those. I did disable all plugins and no change but I think my host uses some caching tools so will go look, thanks!

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Thank you.

    Please let us know what was causing this if you figure it out.

    Thread Starter doriefish

    (@doriefish)

    Hi

    I think there is some clash with tablepress.

    Can you try this please?

    https://www.thealpinekitchen.com/test/

    –> buttons in table press, don’t work

    https://www.thealpinekitchen.com/testing/

    –> button just on the page, works

    Same for you?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Yep.

    I will try to install Tablepress on my test server and see if I can reproduce the issue.

    Meanwhile, can you try to create a product instead of [accept_stripe_payment] shortcode and see if product shortcode is working fine on your setup?

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    I was able to reproduce the issue on my end. And, like I mentioned here https://www.ads-software.com/support/topic/random-issue-with-buttons/#post-10938876 , adding compat_mode=”1″ to shortcode helps. Example:

    [accept_stripe_payment name=”The Alpine Kitchen Cookbook £35″ price=”38.00″ button_text=”Buy Now £38″ currency=”GBP” compat_mode=”1″]

    Thread Starter doriefish

    (@doriefish)

    And if you restart your browser or go to another computer does it still work? Because it doesn’t for me.

    I have it on the first button here for example (with compat = 1)

    https://www.thealpinekitchen.com/test/

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    And if you restart your browser or go to another computer does it still work?

    Yep, works fine.

    I have it on the first button here for example (with compat = 1)

    Just to make sure, is it compat_mode=”1″ or just compat=”1″? Because first is the one that needs to be there.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Random issue with buttons’ is closed to new replies.