Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with currency display on your WooCommerce site while using the multicurrency feature of WooCommerce Multilingual, and you have an active cache plugin like WP Rocket, this might be due to the cache plugin caching essential cookies.
Solution:
We recommend adding the following cookies to the cache exclusion list in the Advanced Rules section of WP Rocket:

  • wcml_client_currency
  • wcml_client_currency_language
  • wcml_client_country

If you're using Geo-Location for currency display, ensure your settings are correct as per our documentation here: Multi-Currency Support in WooCommerce.
Also, check the currency settings for each country specifically and adjust if necessary. You can refer to this screenshot for clarity: currency settings screenshot.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 further assistance is needed, 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.

This topic contains 1 reply, has 2 voices.

Last updated by Mateus Getulio 7 months, 4 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
May 9, 2024 at 12:34 pm #15610564

khalidA-55

Instead, I got:

WooCommerce Multilingual & Multicurrency detected an active cache plugin on your site. Caching may cause currency display issues for your customers if you are using the multicurrency feature. To avoid this, set your cache plugin to not cache pages for visitors that have a cookie set in their browser.

May 9, 2024 at 8:07 pm #15612289

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,
Thank you for reaching our to our support.

This message usually appears if the optimization plugin tries to cache the essential cookies of the WooCommerce Multilingual plugin.

Since you're using WP Rocket, please add the following cookies to the cache exclusion list under the Advanced Rules of WP Rocket.

- wcml_client_currency
- wcml_client_currency_language
- wcml_client_country

[The wcml_client_country cookie is linked to currency display based on Geolocation.]

If you've configured the currency to appear according to the Geo-Location, please make sure that everything is configured correctly as per the documentation below.

- https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currencies-per-location

An important thing to keep in mind- If you've set up the currency based on location correctly while editing the currency, you'll find an option to designate the country for which the currency should display. Refer to this screenshot for clarity: hidden link.

Ensure that you configure this setting accurately for each currency.

You can also switch to display currency based on location and see if that helps.

I hope it will help. But, if you need further assistance, feel free to let me know. I will be happy to help.

Best Regards,
Mateus