Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client has set different prices for each currency, and while the currency switcher works correctly, changing the language does not maintain the set currency price; instead, it shows the automatic exchange rate price. Additionally, after updating a product price, one of the variation prices is set correctly but displayed incorrectly.
Solution:
1. We updated the product in the default language and checked the frontend to ensure that the manual price for the second currency displayed correctly.
2. We identified the issue as related to caching. To resolve this, we went to the admin area, clicked on the top bar menu, selected Breeze, and then clicked on 'Purge All Cache'. This action corrected the price display.
3. We advised the client to adjust cache settings if necessary by navigating to Settings > Breeze.

If this solution doesn't seem relevant to your issue, please feel free to open a new support ticket with us.

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 7 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 9 months ago.

Assisted by: Long Nguyen.

Author Posts
October 20, 2023 at 9:31 am #14622241

vibekeO

I have set the two different prices in each currency - and when using the currency switcher, they are fine. But when I change language, the set currency does not follow, the automatic exchange rate is shown as the price. What setting am I not doing right? 😉

October 23, 2023 at 7:14 am #14633393

vibekeO

Hi, this question was split from another case. But could you look into it for me? 🙂

Kind regards Vibeke

October 24, 2023 at 3:36 am #14641895

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Vibeke,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please try to enable a minimal environment as below and see if it helps:
- Deactivate all plugins except WPML plugins and WooCommerce
- Switch to a standard theme of WordPress
❌ IMPORTANT: Please backup your database and website before proceeding ❌

The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );
define( 'WP_MEMORY_LIMIT', '128M' );

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

If it does not help, please share some screenshots of the Multicurrency setup in WooCommerce > WooCommerce Multilingual & Multicurrency > Multicurrency tab.

Look forward to your reply.
Thanks

October 24, 2023 at 9:04 am #14644369

vibekeO

Hi, I have tried to use storefront (and I have up'ed the memory limit), but I still get the automatic price when using the second language, but the correct price on the default language, but the second currency with the currency switcher.

Attached you will find a screenshot of the set up, do you need more info?

Screenshot 2023-10-24 110107.png
October 24, 2023 at 9:22 am #14644737

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Please let me know the product URL where I can see the issue. Then I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

October 24, 2023 at 10:27 am #14646225

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I re-update the product in English language and switch the language in the frontend, the manual price of the second currency is displayed correctly. Here is the screen record hidden link

Can you please check this issue again?

October 24, 2023 at 10:46 am #14646515

vibekeO

Hi, yes I see that you changed the price for one of the sizes. I changed it back, but now one of the variation prices is set correctly but displayed wrong. Does it take some time for the translation to update?

October 25, 2023 at 2:00 am #14651773

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

It's a caching issue. In the admin area > Top bar menu > I click on Breeze > Purge All Cache then the price displayed correctly. You can change the cache settings in Settings > Breeze.

I hope I was helpful. Don't hesitate to ask if you find any problem along the way, I'll gladly help you.

Screenshot 2023-10-25 at 08.56.37.png