@mercurydan
If you’re using a caching plugin make sure it’s not holding on to an old version of the wc-Braintree.js script.
That sounds like the issue. If you have a staging site where this can be reproduced I’ll take a look.
Kind regards,
Hi @mercurydan,
I reviewed your site (previously mentioned in anther support topic) and I can see JS errors on the checkout page related to a cache.
The plugin outputs a variable called wc_braintree_paypal_params and I can tell by looking at it that it’s a cached version of the variable from an older version of the plugin. When you upgrade the plugin, make sure you are always clearing any aggressive caching plugins that you utilize.
Kind Regards,
Hi @mercurydan,
Quick update regarding this issue. It appears that some plugins return true for the is_cart() function call, even if it’s the checkout page. That can cause the error that you observed in version 3.2.5.
I will be releasing version 3.2.6 shortly which will remove the dependency on the is_cart() result so that other plugins can’t screw up how this plugin works.
Mr Clayton
Thanks. The solution I found was to use 3.2.3 and turn off SG Optimizer which does my caching. However I think it was also when I went from Elementor, back to WordPress Editor (Gutenberg) that there may have been some corruption in the coding around the Shortcode for Woocommerce Checkout.
Previously I think we discussed a problem with having the Cart and Checkout shortcode on the same page as a problem.
Version 3.2.6 released which prevents this issue.
My Clayton
All good its working now with the latest update. Thanks for this.
No problem, thank you for bringing it to my attention.