This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with translating link targets and syncing menu items using WPML. Specifically, they encounter an error message 'Error! Reload the page and try again' when translating link targets and a 504 timeout error when syncing menu items, despite increasing the timeout limit. Solution: We identified that the issues occur when using WPML with the Breeze caching plugin and WooCommerce. Disabling the Cache System option in Breeze resolves the issue with translating link targets. For syncing menu items, if continuing with Breeze, we recommend adding the following code to the functions.php file of your Child Theme to handle currency switching for non-logged-in users:
Additionally, we suggest consulting the Breeze support to explore options for excluding specific scripts from caching. If Breeze support cannot provide a solution, please contact us for further assistance. Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
I tried using the example website you sent, but when I try the currency conversion, it's not working, as you can see on the video - hidden link
At the staging site, I have disabled the cache, and it's still not working.
I know the live site will use Cloudflare and not Breeze as the caching plugin so hopefully it will work but I need it to work for me on the staging site so I can present it to the client and once approved move it to the live website
Does the currency switcher depend on user location?
Like I said I need it to work for me on the staging site to show the client
I don't know how, but the currency switcher seems to be working now. Breeze has been disabled.
Instead of using Breeze we can use WP Rocket as the cache plugin, so don't think this will be a problem as WP rocket is on the recommended list of plugins you have and I sure this will work first time. Testing it right now
Im sorry to say but your testing site it still not working for me.
For the Bofi staging site after disabling Breeze and removing the plugin I can say that is working now. The only thing that is not showing is the spin animation in front of the switcher. We have now WP Rocket as our cache plugin.
You mention to exclude the JS but where should I add that option?
Is this going to help with the spin animation icon?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
My apologies, as I can see that the issue persists on my test site while not being logged in.
Note, that even if you decide to not longer use "Breeze" I am about to escalate this issue so that our compatilbity team can take a closer look into it.
---
About the loading circle:
On my test site, I can neither confirm a loading circle if the currency switcher is placed inside the product's "Add to cart" section: hidden link
If you scroll down to the product's description you can see that I added another switcher per shortcode, and here it works.
I am not sure what is expected at this point and will consult my colleagues from second-tier support.
Thank you very much for the help with this and to providing a solution for us in case we want to continue using Breeze as our caching plugin.
We decided to use for now WP Rocket caching as its one of the compatables caching plugins so we shouldn't have any major problems.
Saying that I have noticed that if I change the currency in the product page and add the product to the basket, when visiting the basket, the currency changes back to the default. Do you know why this is the case?
Thank you very much for your message.
Its working with no issues in incognito (not logged in) but when I'm logged in and I go to the checkout page it defaults to the language currency.
I have tried in your test site and its working with me not being logged in.
Can you please tried our site when logged in to see if you can replicate the error?