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.
This topic contains 6 replies, has 1 voice.
Last updated by 2 days, 9 hours ago.
Assisted by: Dražen.