Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 4 replies, has 0 voices.

Last updated by Kor 6 months, 1 week ago.

Assisted by: Kor.

Author Posts
June 12, 2025 at 8:32 pm #17131402

sanderK-22

Background of the issue:
I am trying to get the currency switcher to function correctly on my website. You can see the issue on this page: hidden link.

Symptoms:
The currency switcher only works if I am logged in. When I am logged out, the switcher doesn't work, and it takes about 3 seconds to load without doing anything.

Questions:
Why does the currency switcher only work when I am logged in?
How can I make the currency switcher work when I am logged out?

June 13, 2025 at 7:55 am #17132003

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

June 13, 2025 at 6:09 pm #17134509

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've turned off the "Breeze" plugin and it seems to work fine now. Could you check?

June 13, 2025 at 6:28 pm #17134514

sanderK-22

I checked. It seems to work now without "Breeze" caching plugin not active.

I really want to use Breeze caching plugin since I use Cloudways server. They designed this to work with Cloudways server.

How ever I researched it and I am not the only one who has the same issue with Breeze and WPML multicurrency.

I googled it and found this:
hidden link

Can I add this to my functions.php file and make it work correctly?

add_filter('wcml_is_cache_enabled_for_switching_currency', function($cache_enabled) {
return true;
});

Does it make it work?

Or maybe you have better solution on how to make it work?

June 15, 2025 at 7:05 pm #17136800

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. It looks like you're facing the same issue as this user https://wpml.org/forums/topic/multi-currency-not-functioning-properly-in-my-site-2/ . Unfortunately, we do not have an official workaround for this. But you can try using the PHP function that you've shared earlier. Please back up before you proceed.

The topic ‘[Closed] Currency switcher only works if logged in’ is closed to new replies.