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 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | - |
- | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | 19:00 – 22:00 | - |
Supporter timezone: Europe/Paris (GMT+02:00)
This topic contains 30 replies, has 2 voices.
Last updated by Yvette 4 years, 12 months ago.
Assisted by: Yvette.
Author | Posts |
---|---|
August 25, 2020 at 3:55 pm #6870487 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Valid point - I´m updating them now. |
August 26, 2020 at 9:08 am #6875585 | |
carlos-helderG |
Hi. On the other ticket they have asked me to use this ticket online. So let me include the info of the other ticket here: https://wpml.org/forums/topic/show-currencies-based-on-client-location-cache-problem/ I've tried the following code (but it doesn't work): add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' ); After a lot of attempts, I've realise the currency is shown correctly only when I clear the cache (I'm using WP Fastest Cache). I'm using a VPN/Proxy and an incognito windows in Firefox/Chrome for testing. Besides WP Fastest Cache, we also use Cloudflare. Thanks Carlos |
August 26, 2020 at 4:50 pm #6879455 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Ok. I need to escalate this issue. Could you advise if you would be able to replciate this issue on a sandbox site or do you think it is necessary to have the site hosted on Cloudflare? E.g. if I provide you a sandbox site, would you be able to reproduce the issue? |
August 26, 2020 at 5:01 pm #6879459 | |
carlos-helderG |
Ok. I´m won --> haha 2vs1 yet xD Do you think it is necessary to have the site hosted on Cloudflare? --> I've not idea if it's a cache / cloudflare issue or not if I provide you a sandbox site, would you be able to reproduce the issue? --> I can try... Could you install woocommerce and WPML plugins and activate both in the sandbox? Thanks! Carlos |
August 26, 2020 at 5:29 pm #6879715 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Thanks. Here you go: URL: hidden link |
August 27, 2020 at 9:06 am #6883961 | |
carlos-helderG |
Client geolocation is working not only in checkout but also in the products page. Video: hidden link Product I show in the video: hidden link Now, I'm going to install the WP Fastest Caché to test it as well. |
August 27, 2020 at 9:17 am #6884063 | |
carlos-helderG |
So 3vs1: it's a cache problem as I though. When I install WP Fastest Cache, we have the same issue than I described: hidden link So maybe adding a function to functions.php would fix the issue? (I saw something like that with other cases and other caching plugins, but not this one). Any other idea? 🙂 Thanks! Carlos |
August 27, 2020 at 5:50 pm #6888455 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Alright - I checked with our 3rd tier support. They ask if you can try one of the recommended caching plugins: But point out that currently there are known issues with the currency switcher and caching. So, as a next step, please just confirm that with one of the recommended caching plugins (if you are able to access any of them) the issue persists. Then I will escalate. But to set the expectations, this issue will be rolled into the other caching /currency switcher issue currently being worked on. Thanks again for your collaboration which has been more than useful. |
August 28, 2020 at 2:37 pm #6895001 | |
carlos-helderG |
I've tried WP Super Cache and the same problem occur: In both cases I'm using Cloudflare Is it possible to disable caching only on specific part of the site? Something like...? _ Thanks! Carlos |
August 31, 2020 at 10:37 am #6905803 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Hello One more thing to try according to this forum ticket: |
August 31, 2020 at 10:47 am #6905819 | |
carlos-helderG |
So how could I exclude that cookie? 🙂 |
August 31, 2020 at 4:12 pm #6909025 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Googling this with WP Super Cache I got: Specifically: |
August 31, 2020 at 7:08 pm #6910109 | |
carlos-helderG |
Thanks for the idea! WP Fastest Cache: I did what I found here: https://wordpress.org/support/topic/solution-for-cookie-issue-with-wp-fastest-cache/ 1) Go to the settings for the WP Fastest Cache plugin Unfortunately, the same problem occurs yet. I've disabled the cache system again in order it works (I keep Cloudflare, so it's not so slow). -- WP Super Cache: I've not been able to find the options described: maybe that's an old post and those options don't exist anymore? |
September 1, 2020 at 4:00 pm #6918545 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+02:00) |
Alright - could be. That´s all the suggestions I have to offer for the moment. I am not too optimistic about the expediency of any resolution given that there are outstanding issues regarding how currency cookie/caching should work when multicurrency is being used. I only write this to set your expectations. But please do know that I am capturing all the valid notes and setup you have so generously provided. |
September 1, 2020 at 4:22 pm #6918681 | |
carlos-helderG |
So thanks for your words and communicating expectations. At least it's working with cache disabled (and Cloudflare enabled, so no so slow) |