Support » Plugin: WooCommerce Multilingual - run WooCommerce with WPML » Currency switcher shortcode doesn’t output content on variable product pages

  • Hi.

    I use this plugin: to display currency switcher in menus. But noticed that the content of the shortcode disappear if browsing a product that is variable. All other pages on the site (homepage, shop, taxonomy pages and so on) are all working fine. It is only on variable products that the shortcode output is totally empty.

    Would appreciate if this can be fixed.

Viewing 1 replies (of 1 total)
  • Plugin Author Andreas Panag


    Thank you very much for your ticket and I am very sorry for the delay.

    You are usuing a plugin that we might having compatibility issues. To be honest I tested this but it didn’t worked as you described.

    Now if you need to add the currency switcher in the main menu, you can use this snippet :

    function wcml_currency_to_the_menu( $items, $args ) {
        $currency_switcher = do_shortcode('[currency_switcher]');
        $items .= '<li>' . $currency_switcher . '</li>';
        return $items;
    add_filter( 'wp_nav_menu_items', 'wcml_currency_to_the_menu', 10, 2 );

    If this not working for you, please open a ticket in so we can look better in your problem.

    In the meantime I will bring again the attention for creating a native solution for adding a currency swicther in the main menu like we are doing with language switcher.

    • This reply was modified 7 months, 2 weeks ago by Andreas Panag.
Viewing 1 replies (of 1 total)
  • The topic ‘Currency switcher shortcode doesn’t output content on variable product pages’ is closed to new replies.