Background of the issue:
I am trying to replicate an issue on our EU site at hidden link where changing the language from English/EUR to Danish/DKK affects the shopping basket. I want to understand why the product price changes incorrectly when switching languages.
Symptoms:
When I add a product to the shopping basket in English/EUR and then change the language to Danish/DKK, the product remains in the basket but the price is incorrectly displayed as the same numerical value in DKK as it was in EUR. For example, a product priced at 145 EUR is shown as 145 DKK after the switch.
Questions:
Why does the product price not convert correctly when changing languages?
Is the script responsible for clearing the basket not loading fast enough?
The issue is most likely caused by outdated plugins. Please update WooCommerce (9.9.5), WPML (4.7.6 series), and all other plugins to their latest versions after taking a full site backup (mandatory).
Then, clear all types of caches and check if the issue still exists.
Thank you for the updates. We assume you have enabled the "Clear cart contents when a language is selected" option due to this bug (please refer to the attached image for more details).
This issue is most likely caused by a compatibility conflict. To help track it down, please try the following steps on a staging site after taking a full site backup:
a) Switch temporarily to a default WordPress theme, such as Twenty Twenty-Five
b) Deactivate all plugins except WPML and WooCommerce
c) Check if the issue still occurs
d) If the issue is resolved, start reactivating the other plugins in groups of 3–4 to identify the one causing the conflict
e) Switch back to your parent theme (Shoptimizer), then the child theme