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.

This topic contains 5 replies, has 1 voice.

Last updated by Alejandro 1 week, 6 days ago.

Assisted by: Alejandro.

Author Posts
June 6, 2025 at 11:40 am #17113842

Lukas Cech

Background of the issue:
I am trying to sell variable products through WooCommerce. Initially, the default language was SK with EN as the secondary language, but we swapped them, making EN the default and SK secondary. We are using WPML Multicurrency with EUR and AED, with a conversion rate of 1 AED = 0.25 EUR. We had previous issues with variation prices, as seen in this ticket: https://wpml.org/forums/topic/automatic-translation-calculates-variation-price-incorrectly/. Now, we are experiencing a different issue where a product priced at 200 EUR is showing as 50 EUR in the cart. The system seems to think 200 is in AED, not EUR, and converts it to EUR, resulting in 50 EUR. The price of this product in AED is 800. The issue can be seen on this page: hidden link.

Symptoms:
A product that costs 200 EUR is showing a price of 50 EUR in the cart. The system seems to incorrectly convert the currency from AED to EUR.
If I put the product into the cart in AED, it's showing the correct price. So only AED to EUR conversion is being applied to the price in EUR for some odd reason.

You can test it yourself - put the EUR priced product into the cart: hidden link.

Questions:
Why is the product price showing incorrectly in the cart?
How can I ensure the correct currency conversion is applied?
Why is the system trying to convert an EUR price to EUR, thinking the value is in AED?

June 6, 2025 at 11:51 am #17113918

Lukas Cech

It all points to the switch from default SK to default EN language left some DB entry incorrect so that the system thinks it should convert from AED do EUR even if it's in EUR?

June 6, 2025 at 11:52 am #17113921

Lukas Cech

Please create a private entry window and I'll give you temp admin access.

June 10, 2025 at 6:45 am #17120318

Lukas Cech

Anyone home? it's the 3rd day now, no response.

June 10, 2025 at 7:19 am #17120380

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello,

1) Can you please send a reference product and the steps to recreate the problem or even a quick video where you do it, so I can try to understand where the problem lies.

2) Also, did you happen to test this situation when all the other plugins are disabled to be 100% sure the problem doesn't have to do with any other plugin. If you did, did you do the same with the theme? changing it to a default one like storefront and verifying the problem still happens?

3) Lastly, Since you changed the default language of the site, please go to WPML > Support > Troubleshooting and run the option that you find inside the "clean up" section, after a site backup. This way the site will do some "maintenance" and fix little issues that may find along the way (like reassigning languages when needed).

Let me now how it goes so I can understand how to continue.

June 10, 2025 at 8:03 am #17120665

Lukas Cech

Hi Alejandro,

1.) I outlined the exact steps including the product to reproduce the issue, you obviously haven't bothered to read my description in full.

2.) Good point - and that helped. It was a custom code in the child theme that we took from https://wpml.org/forums/topic/issue-with-multi-currency-compatibility-with-the-variation-swatches-pro-plugin/ to troubleshoot a different issue some time ago. Now obsolete. Removing that code snippet resolved the problem.

3.) there are about 15 options, you should probably specifa which one, or "run all options in that section" in the future.

June 10, 2025 at 8:36 am #17120794

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Sorry I had meant the details, because I thought there was something else other than add a currency conversion setting and then just send a product to the card (there are actually a few things in between that could change the behavior).

However I'm glad the problem was spotted and solved 😀

Regards,