[Resolved] Multi currency not functioning properly in my site
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with the currency switcher on their website. The currency switcher does not work on the homepage and behaves unpredictably when changing languages or navigating different pages like cart, checkout, about, and home, especially when a performance plugin with cache is enabled. Solution: 1. Verify that the website is accessible and loading correctly. If not, check with the hosting provider. 2. Flush the cache memory and temporarily deactivate the cache plugin to see if the issue with the currency switcher persists. 3. Ensure that the WordPress memory limit is sufficient. It is recommended to set it to at least 128M. This can be done by adding the following line to the wp-config.php file:
Place it above the line /* That's all, stop editing! Happy blogging. */. 4. If the issue disappears when the Breeze cache plugin is disabled, consider switching to a cache plugin that is compatible with WPML, such as LiteSpeed Cache.
If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your 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 problem persists, please open a new support ticket.
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.
Background of the issue:
I want to change/switch currency manually using the currency switcher dropdown on my site. The issue can be seen at hidden link.
Symptoms:
The currency switcher doesn’t work on the homepage. The currency changes unpredictably with language change, and different pages like cart, checkout, about, and home show different currencies unpredictably when I install any performance plugin with cache.
Questions:
Why does the currency switcher not work on the homepage?
Why does the currency change unpredictably with language change?
Why do different pages show different currencies when a performance plugin with cache is installed?
One of my colleagues is going to take on your ticket. In the meantime, I would like to provide some helpful information.
I have tried to check your website, but it doesn't work. It is not associable.
We can't connect to the server at nuragesports.com.
The cache plugins probably cache the homepage, which could explain why the switcher doesn't work correctly. The other pages you mentioned are most likely not cached, so the currency switcher will work as expected.
Hello,
My name is Carlos and I will continue working on this ticket
1.- As my colleague explained, the site is not loading so we can't reproduce the issue. Could you check with your hosting providers why the site is not loading?
2.- Does the issue persist if you flush the cache memory and then deactivate the cache plugin?
3.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`
1. Website link was wrong with a typo. visit: hidden link
2. No, It works fine if we disable cache plugin but I need to use cache plugin to improve my site performance.
3. Memory limit 1000M.
2.- Could you tell me what is the cache plugin used on the site?
3.- The PHP memory limit is 1023M, which is correct, however the steps I described were to increase the WordPress memory limit. You can double-check the WordPress memory limit in WPML -> Support