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.
Tagged: Compatibility, WCML
Related documentation:
This topic contains 33 replies, has 0 voices.
Last updated by zakW 1 day, 12 hours ago.
Assisted by: Andreas W..
Author | Posts |
---|---|
May 20, 2025 at 1:14 pm #17052867 | |
zakW |
Hi Andreas, I have tested this a couple of times, and what I encountered was adding the product to the cart and going to the checkout, after, the currency changes back to GBP. In the video, you can see that it changes after the product was added to the basket. hidden link This looks like its a caching issue. I'm using WP Rocket, a compatible caching plugin with WPML so can you check what is happening please? Thank you in advance for the help |
May 20, 2025 at 9:52 pm #17054681 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
In your video, it looks like when you liked "Add to basket" it refreshed the page before adding the product to the cart and at this moment the currency switched back to the British Pound currency. I was now able to see the issue on your staging site even while not being logged in. I switch to YEN, then go to the English cart and it changes to GBP, but if I switch now on the cart to Italian language, it changes to EUR. It looks like you use a specific setup in WCML to make specific currencies only available in specific countries. So I connected again to the site and went to WooCommerce > WooCommerce Multilingual & Multi-Currency > Multicurrency. Here, for English, you have enabled only Pound sterling. This must be why when trying to make a purchase in English the currency will switch to GBP. |
May 21, 2025 at 7:38 am #17055368 | |
zakW |
Hi Andreas, The client requested that only specific currencies be available to specific languages; that is why, in the screenshot, the work is showing like that. The issue here is that when we navigate to a product in the English language and we switch the currency to YEN, for example and add the product to the cart or go to checkout, the currency changes back to GBP. I'm safe to assume that when the currency is changed, it should remain changed in my session, if available in the language I'm seeing the website. This does like a caching problem or a problem with cookies but if you can check and see if its something I missed please do let me know All help is appreciated |
May 21, 2025 at 10:14 am #17056409 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
The issue here is, that according to the settings, the behavior on your site is unexpected. If a currency is made available for example only for English, and there is no other active currency for this language, then there should not even appear an option to switch currency. You can see the default behavior on my test site: I enabled USD for English only. When visiting an English product, you will not be able to select EUR. Unclear to me is, why the settings are not working as expected on your currency switcher. I will take closer look into this today and might take a local copy of the site for debugging. |
May 21, 2025 at 10:52 am #17056609 | |
zakW |
Hi Andreas, Thank you very much for having a look at this. All products are available for all languages and each language has its own set of currencies. The unusual behaviour is changing the currency when products are added to the cart of when going to the checkout. Once again thank you for having a look at this |
May 22, 2025 at 4:06 am #17059478 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
I took a close look again into the settings and I actually can confirm that they work as expected. Examples: On the staging site, I updated WordPress and ran some available plugin updates (as far as possible). I then tested using the example of your last video while not being logged in to the site. As you can see in my video, the currency amount stays equal, from product to cart to checkout. (here for YEN 1 734) I can currently not confirm that the currency amount is not taken over from the shop until checkout. Video: The only issue I can confirm is that the currency symbol is not changing accordingly. --- Also, please make sure to not report any issues, as long as not all components of the site are updated. Before reporting an issue, update WordPress, Theme, and any active plugins. |
May 22, 2025 at 7:39 am #17059802 | |
zakW |
Hi Andreas, After further investigation, I found that another currency switcher plugin had been activated on the website, which was preventing the currency symbol from updating correctly. I’ve now deactivated that plugin, and everything is working as expected. The client likely enabled it while testing something on their end. I really appreciate all your help and your patience while we worked through this issue. Thank you again for your support. |