Home Forums WoodMart support forum about wpml currency switcher

about wpml currency switcher

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #405545

    [email protected]
    Participant

    Dear Support ,
    i use wpml currency swircher shordcode on Header builder using text/html
    [currency_switcher format=”%code% (%symbol%)”]

    it is sound like working , but sometime can’t switch the currency, sometime can
    any idea why is it happen and how to fix ?
    thk
    Mango

    #405609

    Hello,

    Please make the full backup of your site and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.

    Best Regards

    #468512

    [email protected]
    Participant

    Dear Support ,

    Found solution want to share with other user
    Add snippets and change the currency that use should work

    /**
    * Change a currency symbol
    */
    add_filter(‘woocommerce_currency_symbol’, ‘change_existing_currency_symbol’, 10, 2);

    function change_existing_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case ‘HKD’: $currency_symbol = ‘HK$’; break;
    case ‘USD’: $currency_symbol = ‘US$’; break;
    }
    return $currency_symbol;
    }

    Best Regards

    #468664

    Hello,

    Thank you very much for sharing your solution.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘about wpml currency switcher’ is closed to new replies.