Same here. We had to downgrade it to 1.10.3, which works perfectly fine. I can see a lot of errors in th JS console like:
Cannot set property 'reportValidity' of null...
Plugin Support
John Coy a11n
(@johndcoy)
Automattic Happiness Engineer
Hi @cutu234 and @dalberthab
I’m not able to replicate the problem. Try switching back to a default theme like Twenty Twenty and disable all plugins except for WooCommerce and Amazon Pay to see if this resolves the issue.
Here is a link that better outlines that process:
https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4
If this fixes the issue, then re-enable each plugin one at a time, then the theme, until you find the one that’s causing the conflict.
Hi @johndcoy,
you have to enable the multi currency support in order to reproduce the error. We use Product Price based on Countries. If the multi currency support is disabled, there is no error.
Best regards
David
You have to enable the multi currency support in order to reproduce the error. We use Product Price based on Countries. If the multi currency support is disabled, there is no error.
Thanks for the input. I can confirm that this plugin causes trouble. How do you disable multi currency support? I can’t find any settings for that.
However, we’ve found two other plugins that cause the very same problem:
WooCommerce Show Single Variations by Iconic
WooSwatches Mod – Woocommerce Color or Image Variation Swatches
Added a ticket on Product Price based on Countries Pro about this. Hopefully they can find a fix for this. Have the same problem and can’t update.
Hi @johndco,
The Amazon Pay plugin documentation indicates that the plugin include supports for Price Based on Country:
https://docs.woocommerce.com/document/amazon-payments-advanced/#section-5
Maybe it’s a bug in the multi-currency compatibility module of Amazon Pay in the new version?
We have made no significant changes to “Country Based Pricing” in the last 3 months.
It is probably not multi currency related, since I’ve found two other plugins that cause the same problem:
WooCommerce Show Single Variations by Iconic
WooSwatches Mod – Woocommerce Color or Image Variation Swatches
These plugins do not change anything in the checkout process.
Plugin Support
Doug – a11n
(@dougaitken)
Automattic Happiness Engineer
Hi all @cutu234 @fox-didl @dalberthab
I see mentions of other plugins active for this to be replicated – can this be replicated with only the following:
WooCommerce core plugin
WooCommerce Amazon Pay
If this cannot be replicated with only those two plugins using a default theme, then the conflict lies with another plugin.
If switching from Amazon Pay to another payment gateway resolves this please do help by listing which plugins were active.
When this “endless loop” happens – are there any HTTP error codes in the consolve or only JavaScript errors?
Thanks,
Dear @dougaitken,
no, it is required to have a plugin enabled that enabled the multi currency support of your plugin.
I did a check with woocommerce, amazon pay and Product Price based on Countries (free). Theme was twentytwenty.
We got no http error codes. It is javascript releated. Please hava a look in the first post of this threat. I already posted the corresponding js functions with line and file.
Best regards
David
@dougaitken
I checked the diffs between 1.11.1 and 1.12.2 and found the relevant line:
amazon-app-widgets.js – line 427 – onPaymentSelect: wcAmazonUpdateCheckoutAddresses
These line is added in 1.12.x and causes the infinite loop (function calls in post 1).
Best regards
David
David, thank you for you valuable input. I hope, this will help fixing the problem.
Hi @johndcoy @dougaitken
The amazon pay plugin includes a module to guarantee the compatibility with the Price Based on Country plugin:
https://plugins.trac.wordpress.org/browser/woocommerce-gateway-amazon-payments-advanced/trunk/includes/compats/class-wc-amazon-payments-advanced-multi-currency-ppbc.php
If there is a conflict with PBoC, Who should solve the issue? Why do you recommend disable PBoC?
I had the same problem in combination with the plugin “Price Based on Country for WooCommerce”. Downgrading the Amazon Pay plugin to 1.11.1 solved it for now.
Hi all!
Sorry to hear you are all running into this issue with Price Based on Country and Amazon Pay.
@dalberthab – I see you opened an issue on GitHub for this. I’ve flagged that issue for our developers to take a look.
I noticed on GitHub that you were using Price Based on Countries v. 2.0.8. Would you mind confirming if you are seeing the same issue when you update Price Based on Countries to v. 2.0.9?
Thanks so much for your discussion and report here!
Sure the issue is still there with 2.0.9.