Title: Shortcode [currency_switcher] doesn&#8217;t work
Last modified: October 27, 2024

---

# Shortcode [currency_switcher] doesn’t work

 *  Resolved [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/)
 * I am doing local development using bricks builder. I tried to insert this shortcode
   into header, and it’s not rendered.
 * Please check this link: [https://www.loom.com/share/2e7a59e7d6da472896269505d1b247e8?sid=cfb02543-d86f-4fd9-b634-3fe92515fc35](https://www.loom.com/share/2e7a59e7d6da472896269505d1b247e8?sid=cfb02543-d86f-4fd9-b634-3fe92515fc35)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18099327)
 * Hello [@breadf](https://wordpress.org/support/users/breadf/),
 * If you added into a native WordPress widget or using a different theme does it
   work? This will let us know if the problem is related to Bricks theme or if something
   else is happening in your website.
 * Also, have you tried [any other of the options available](https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#adding-a-currency-switcher-to-the-front-end)
   in WooCommerce > WooCommerce Multilingual >Multicurrency?
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18101754)
 * Hi [@andrescifuentesr](https://wordpress.org/support/users/andrescifuentesr/),
 * Yes I tried. It doesn’t work.
   I tried to get a custom code from Chatgpt as below
   and it doesn’t work as well:
 * function custom_wpml_currency_switcher_shortcode() {
   if (function_exists(‘wpml_currency_switcher’)){
   ob_start();wpml_currency_switcher([‘switcher_style’ => ‘dropdown’ // Adjust based
   on your WPML backend setting, if necessary.]);return ob_get_clean();}return ”;}
   add_shortcode(‘wpml_currency’, ‘custom_wpml_currency_switcher_shortcode’);
 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18103105)
 * I created the [following Sandbox](https://tuneful-ukulele.sandbox.otgs.work/?auto=CIDmHv4mZOUWeF6TUoTRR11QQ5qq95Ue)
   and added a `[currency_switcher]` shortcode in Appearance > Customize > Widgets
   and it is [working correctly](https://tuneful-ukulele.sandbox.otgs.work/). Could
   you try something similar in your website?
 * Otherwise, could you please try to add your currency switcher in the [same Sandbox](https://tuneful-ukulele.sandbox.otgs.work/?auto=CIDmHv4mZOUWeF6TUoTRR11QQ5qq95Ue)?
   In that way, we will be able to investigate it further.
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18103885)
 * In this case, it may be related to Bricks Builder.
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18103957)
 * [@breadf](https://wordpress.org/support/users/breadf/) I have removed your offer
   to send login credentials, please never do that again, even for staging sites.
 * > Common reasons for edits or suspensions include but are not limited to: […]
   > Posting or accepting offers or requests for login information to a site.
   >  [https://wordpress.org/support/guidelines/#we-reserve-the-right-to-manage-the-forums-to-the-best-of-our-ability](https://wordpress.org/support/guidelines/#we-reserve-the-right-to-manage-the-forums-to-the-best-of-our-ability)
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18103961)
 * Oh sorry, I am not aware of this rule. Thanks for telling me this.
 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18105142)
 * I’m afraid it is also working with Bricks, I created a [new page](https://tuneful-ukulele.sandbox.otgs.work/page-with-shortcode)
   and added the shortcode there and it is working fine.
 * In that case, it could be either the theme, plugin or a combination of both. 
   Therefore can you do the following: check if this issue appears in your test 
   site when:
    - Only WCML plugin is activated, as it will tell us if there is an interaction
      issue with other plugin.
    - Theme is set to a WordPress default like Twenty Nineteen as it will tell us
      if there is an interaction issue with your theme
 * If you don’t see the issue happening in the above scenario, can you try to determine
   whether this is a theme or a plugin issue?
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18106195)
 * I tried again and deactivated all plugins except woocommerce:
 * Change theme to default, and only woocommerce plugin activated:
 * Hope it helps.
 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18108040)
 * In that case, let’s try the following:
    - Add the shortcode in a regular page, does it work there?
    - Could you share your settings in WooCommerce > WooCommerce Multilingual > 
      Multicurrency?
    - As you were able to reproduce the issue in a minimal environment, could you
      please do it on the [Sandbox](https://tuneful-ukulele.sandbox.otgs.work/?auto=CIDmHv4mZOUWeF6TUoTRR11QQ5qq95Ue)
      shared?
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18109102)
 * Please check the video: [https://www.loom.com/share/fddd8aac70034fb498be5a4c3aaf4366?sid=8007cb97-3834-4630-9c42-59e863225755](https://www.loom.com/share/fddd8aac70034fb498be5a4c3aaf4366?sid=8007cb97-3834-4630-9c42-59e863225755)
 * I added it in home page. It doesn’t work. You can find the settings in the video.
   
   I don’t know how to create the sandbox. I’ll send an email to your support about
   this issue.
 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18109736)
 * Thank you for the video. One thing that you can do is adding a different shortcode(
   for example, from another plugin or your theme) and test it in the same place.
   Does it work this time?
 * Now, regarding my previous reply, you don’t need to create a Sandbox, you just
   need to click on this [link](https://tuneful-ukulele.sandbox.otgs.work/?auto=CIDmHv4mZOUWeF6TUoTRR11QQ5qq95Ue)
   and reproduce the issue as you did when you deactivate plugins and switch to 
   a different theme.
 *  Thread Starter [breadf](https://wordpress.org/support/users/breadf/)
 * (@breadf)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/#post-18110423)
 * It worked with other plugins from Curcy and Yay multi currency switchers. I’ve
   bought Curcy multi currency switcher premium. It worked fine.
 * I’ve sent an email to your official support and provided a staging site for you
   to test.
 *  Plugin Support [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * (@andrescifuentesr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/page/2/#post-18112848)
 * I’m glad your found an alternative that worked for your environment. Don’t hesitate
   to open a new ticket if you try to use WooCommerce Multilingual in another project.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Shortcode [currency_switcher] doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-multilingual/assets/icon-256x256.png?rev=2937122)
 * [WPML Multilingual & Multicurrency for WooCommerce](https://wordpress.org/plugins/woocommerce-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-multilingual/reviews/)

 * 17 replies
 * 3 participants
 * Last reply from: [Andrés Cifuentes](https://wordpress.org/support/users/andrescifuentesr/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/shortcode-currency_switcher-doesnt-work/page/2/#post-18112848)
 * Status: resolved