• Resolved Manan Ghadawala

    (@manan-ghadawala)


    Hello Guys,

    What a Amazing Plugin you have but the thing is i want to change the Symbol of $ to USD. As i have already Hook in functions.php provided by woocommerce author but it didn’t working when your plugin activated.

    So tell me what i do now. Code is below :

    // Currency Symbols
    add_filter( ‘woocommerce_currency_symbol’, ‘change_currency_symbol’, 10, 2 );

    function change_currency_symbol( $symbols, $currency ) {
    if ( ‘USD’ === $currency ) {
    return ‘USD’;
    }
    return $symbol;
    }

    So please help me how can i overcome from this Problem.

    Thanks,
    Manan

    https://www.ads-software.com/plugins/woocommerce-currency-switcher/

Viewing 1 replies (of 1 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello Manan

    It it is very easy and not need any code changing

    Go to the plugin settings, tab Options, find there ‘Custom money signs’ and write there ‘USD’. Press save. Then for currency USD select your new sign.

    OR

    directly in index.php in private function init_currency_symbols() – just add your sign in array $this->currency_symbols

Viewing 1 replies (of 1 total)
  • The topic ‘Change the currency symbol from '$' to 'USD' in Woocommerce’ is closed to new replies.