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.
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!
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″]
Hello
No I am not using a pagebuilder. Tried that, doesn’t fix it. If you go to the site does it work?
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.
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!
Thank you.
Please let us know what was causing this if you figure it out.
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?
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?
I was able to reproduce the issue on my end. And, like I mentioned here https://wordpress.org/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″]
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/
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.