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 1 reply, has 1 voice.

Last updated by Charly 1 year ago.

Author Posts
October 3, 2018 at 11:42 am #2784402

Charly

Hello,

I have multiple problems with the currency switcher :

- When I'm logged as admin, if I put a product in my cart and then switch the currency from chf to $, the currency is updated but the amount stay the same.
- When I'm logged out or logged in as a customer, the switcher is working well but once I checkout we force the CHF currency ... same problem the price doesn't adapt which is annoying.

I disabled any WP cache system but the issue is still running.

FYI, Here's the function to force CHF during checkout

add_filter( 'wcml_client_currency', 'nescens_reset_client_currency' );
function nescens_reset_client_currency( $client_currency )
{
if ( is_checkout() )
$client_currency = 'CHF';

return $client_currency;
}

Thanks in advance for your support !

October 4, 2018 at 5:34 pm #2788403

Charly

My issue is resolved now. Thank you!