Skip Navigation

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
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 19:00 – 22:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 25 replies, has 2 voices.

Last updated by Subash Chandra Poudel 1 year, 8 months ago.

Assisted by: Subash Chandra Poudel.

Author Posts
March 7, 2023 at 11:18 am #13188549

Subash Chandra Poudel

Hi there,

The issue was replicable in the new staging site because the server I created the staging site also had a server layer caching. I modified our server caching and disabled caching for the cookie wcml_client_currency as I advised in my reply in https://wpml.org/forums/topic/multicurrency-feature-conflict-with-w3tc-caching-plugin/#post-13105631

As you can see in the following screen recording, it works fine for me in the staging site as well.

hidden link

So if there is an issue in your site even after adding the code and excluding the cookie as I explained in the reply linked next it should be due to your server caches or due to your browser issues.

Regards.
Subash

March 7, 2023 at 11:51 am #13188913

Jerzy Afanasjew

The option that you recommend in w3tc settings has a disclaimer saying "Never cache pages that use the specified cookies.". As far as I understand this would mean disabling caching on all of my pages. How can you recommend this as a solution for an ecommerce site?

I have disabled the cookie in the Cache Groups w3tc settings, before I did that even going to specific product page would not update currency correctly per geolocation. I have server side caching disabled. The issue persists. Please advise. Disabling caching all pages is not a solution.

March 8, 2023 at 4:35 am #13195021

Subash Chandra Poudel

Hi there,

Thank you for your reply.

It is actually expected that when a page is cached with plugin that is not fully compatible with WCML the Multi currency features might not always work unless you don't cache the pages using WCML related cookies.

More details on WCML and WPML compatible caching plugins at: https://wpml.org/plugin-functionality/caching/

However after your reply I looked into the issue further and setup three different Cookie Cache Groups in W3 Total Cache plugin as shown in the screenshot attached. I also removed he page cache cookie exception that I added before and it seems to work fine now. Note the code in my previous reply linked next to store WCML data as cookies instead of WC session is still required.

https://wpml.org/forums/topic/multicurrency-feature-conflict-with-w3tc-caching-plugin/#post-13105631

Can you please check the staging site hidden link again and verify if the caching setup is working fine with WCML multi currency now or not?

Regards,
Subash

Cache Groups _ W3 Total Cache ‹ PRO Test — WordPre.png
March 8, 2023 at 8:33 am #13196539

Jerzy Afanasjew

Unfortunately the issue persists, please see the screenshot attached. I am browsing from USA yet instead of USD I see PLN currency.

CapturFiles_2342.png
March 8, 2023 at 11:50 am #13198383

Subash Chandra Poudel

Hi there,

In the site hidden link when I edit the Homepage , I can see that the Likst below "POPULAR" heading is static texts so it is expected that it always shows the fixed/static text.

Please check with dynamic Products widgets or Products instead. I checked the Shop page hidden link and Product URLs like hidden link and they seem to work fine.

Regards,
Subash

March 9, 2023 at 9:44 am #13205285

Jerzy Afanasjew

You are correct. The issue is with my theme. I am moving on to my theme's support. I will update when they find a solution, for future reference.

March 10, 2023 at 6:52 am #13213895

Subash Chandra Poudel

Hi there,

Thank you for the updates.

Please let me know how it goes after further tests or if you need further help from our end after you have more insights from the theme support.

Regards,
Subash

March 13, 2023 at 9:16 am #13229541

Jerzy Afanasjew

In regard to cleanup bot email I am letting you know I am still debugging with my theme support. Will update further ASAP.

March 13, 2023 at 9:39 am #13229711

Subash Chandra Poudel

Hi there,

Thank you for the updates.

Please let me know once you get a result from the theme support.

Regards,
Subash

March 20, 2023 at 8:05 am #13281055

Jerzy Afanasjew

Bumping so this thread is not automatically closed, I'm still waiting for theme developer response.

March 20, 2023 at 8:51 am #13281477

Subash Chandra Poudel

Hi there,

Thank you for the updates.

The ticket will stay open for the next few weeks please let us know how it goes once you have an update.

Regards,
Subash

The topic ‘[Closed] Multicurrency feature conflict with w3tc caching plugin’ is closed to new replies.