Skip to content Skip to sidebar

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

Problem:
The client is trying to implement a manual currency switcher on the top bar of their website but it is not visible. They are using the

do_action('wcml_currency_switcher', array('format' => '%name% (%symbol%)'));

in the section of header.php and also tried the shortcode [currency_switcher] on a random page, but neither method displays the switcher.

Solution:
We recommend checking the WooCommerce Multilingual’s multi-currency feature documentation here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/
Ensure that the currency switcher is added using either a widget or a shortcode. More information about how to implement the currency switcher can be found here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currency-switcher-shortcode
Additionally, the issue might be due to the settings where only one currency per language is enabled, which means the switcher won't display if there's nothing to switch to. Enabling multiple currencies for each language could resolve this issue.

If this solution does not apply because it might be outdated or not relevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 6 replies, has 1 voice.

Last updated by Dražen 2 days, 23 hours ago.

Assisted by: Dražen.

Author Posts
July 17, 2025 at 7:52 am #17244291

marcinK-41

Background of the issue:
I am trying to implement a currency switcher on the top bar of my website. The issue can be seen on this page: hidden link.

Symptoms:
The currency switcher is not visible. I expected to see the currency switcher, but instead, I got nothing.

Questions:
Why is the currency switcher not visible on the top bar?
How can I make the currency switcher appear on my website?

July 17, 2025 at 8:03 am #17244368

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for contacting WPML support. While one of my colleagues picks up this ticket, I’d like to provide some initial troubleshooting steps to assist you.

Please refer to this documentation, which explains how WooCommerce Multilingual’s multi-currency feature works:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/

After reviewing the guide, make sure that the currency switcher has been added using either a widget or a shortcode. You can find more information about the available options here:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currency-switcher-shortcode

Let us know if this resolves the issue or if you need further help.

July 17, 2025 at 9:51 am #17244905

marcinK-41

Kor,
multicurrency is ON, it works fine based on language. Schwithing the language the currency also switch. But now i want to implemenet manual switcher, becouse I have some problems with geolocation and cache.

I am using <?php do_action('wcml_currency_switcher', array('format' => '%name% (%symbol%)')); ?>
in header.php in <body> section
But nothing happed. I also try shortcode [currency_switcher] in random page but it shown nothing. Echo text before and after shordcode works as well.,

July 18, 2025 at 9:37 am #17249363

Dražen
Supporter

Languages: English (English )

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

Hi,

please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

July 18, 2025 at 12:00 pm #17249954

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I have checked and found that the reasons is because you are using currency per language, but have set to show only 1 currency per language, so switcher will not show as there is nothing to switch to.

If I enable euro also for PL language, it appears fine, image attached.

Regards,
Drazen

Pomiar mocy POWERCRANK _ SINGLE _ CUSTOM - sklep INPEAK.jpg
July 18, 2025 at 1:47 pm #17250601

marcinK-41

Ok, thank you. Now it is clear for me.

July 18, 2025 at 2:07 pm #17250687

Dražen
Supporter

Languages: English (English )

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

Hello,

great, thanks.

I will be closing the ticket now, feel free to contact us again.

Regards,
Drazen