Skip Navigation

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

Problem:

This was an issue with the currency symbol in the mini cart widget in the header. It didn't change to the current symbol when the cart was empty.

Solution:

We checked this issue on our side and found it was not an issue with WPML or WooCommerce Multilingual & Multicurrency. It was an issue with the custom code by the user.

0% of people find this useful.

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

Last updated by Itamar 4 years ago.

Assisted by: Itamar.

Author Posts
August 26, 2020 at 1:18 pm #6878003

ghadaha

Other theme Not working on woo commerce it have UX blocks also..

August 26, 2020 at 1:58 pm #6878331

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

So if I understand correctly the issue is with the mini cart widget in the header.
And this is a feature of the Flatsome theme.
Is this correct?

August 26, 2020 at 2:26 pm #6878439

ghadaha

may be i not have knowldge about it.. I m developer for WPML.. i not aware of theme...

Also product page also have same issue..

August 27, 2020 at 12:28 pm #6886243

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

To continue and help with this issue that you have we need to replicate it on a fresh and new WordPress site. For this purpose, I've already installed a new WordPress site and also installed and configured WooCommerce and WPML on it. When I check things on this site everything works as expected regarding the default currency switcher of WooCommerce Multilingual. When I change the currency it is changing on the products that are on the page. And it is also changing on the cart widget in the header of the Flatsome theme. I've recorded a video. Please see it here. hidden link

So now I want to ask you to install the plugin or code that you are using to switch the currency on this test site. Then we'll be able to continue and debug this issue. And if needed we'll escalate to our compatibility team.

You can access it through this link:

hidden link

With this link, you'll be directly logged in.

Could you please install the currency switcher plugin that you are using and see if the issue is also happening on a clean WordPress installation?

When everything is finished, and you can replicate the problem, please let me know.

Thanks,
Itamar.

August 27, 2020 at 1:44 pm #6886889

ghadaha

Please add MaxMind Licence Key on woo commerce for location based currency as default

August 27, 2020 at 1:48 pm #6886905

ghadaha

what is your country

August 27, 2020 at 1:53 pm #6886923

ghadaha

You can add your currency and assign to ur country

August 27, 2020 at 1:57 pm #6886941

ghadaha

Same issue on your test site.

Run hidden link

Then on same browser you run

hidden link

Then u can see just for a sec cart to INR and then change to default to previous

I have used a plugin
WWT STOCK UPDATE Renym

Simple code :

add_filter( 'wcml_client_currency', 'modify_client_currency', 10, 1 );

function modify_client_currency( $currency ) {
if( !is_admin() ){
$currency = isset( $_GET['currency'] ) ? esc_attr( $_GET['currency'] ) : $currency;
$currency = strtoupper( $currency );
return $currency; // If this is a shop page, change the front-end currency to USD
} else {
return $currency;
}
}

August 27, 2020 at 2:16 pm #6887229

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi and thanks for installing the plugin.

I can see this problem on the test site.

You wrote: "Please add MaxMind Licence Key on woo commerce for location based currency as default"

Do I still need to do that?

August 27, 2020 at 2:35 pm #6887349

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

I'm consulting our second tier supporters regarding this issue.

August 27, 2020 at 5:36 pm #6888349

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Our second tier supporter has checked this issue and found out that when there is a product in the cart the currency is changing and it is working fine. I checked it and that true. Please see the attached screenshot.

Can you please try it yourself and confirm that it is OK?

Thanks,
Itamar.

2020-08-27_20-32-06.jpg
August 28, 2020 at 3:35 am #6890879

ghadaha

yes he right.. with non empty cart its working fine..

its strange its should be work with empty cart too i felt some bug ...

Please resolve this issue as soon as possible.

August 28, 2020 at 3:37 am #6890899

ghadaha

maxwind client id just was to get default currency test..

Have you set it..

Now only issue that empty cart its not working.

Because default currency based on location is working..

August 29, 2020 at 2:10 am #6897167

ghadaha

Still not debuged? 22 hours but no reply

August 29, 2020 at 7:45 pm #6899761

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

I'm sorry for not replying here. But please understand that Friday and Saturday is the weekend in my country. I'll be able to check things and get back to you tomorrow (Sunday).

Thank you for your patience.
Itamar.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.