Viewing 3 replies - 1 through 3 (of 3 total)
  • which plugin you use?

    if you are using woo commerce then you can over write the currency symbol by this function. paste this into your theme function.php file

    add_filter( ‘woocommerce_currencies’, ‘add_my_currency’ );

    function add_my_currency( $currencies ) {
    $currencies[‘ABC’] = __( ‘Currency name’, ‘woocommerce’ );
    return $currencies;
    }

    add_filter(‘woocommerce_currency_symbol’, ‘add_my_currency_symbol’, 10, 2);

    function add_my_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
    case ‘ABC’: $currency_symbol = ‘$’; break;
    }
    return $currency_symbol;
    }

    Plugin Author fsheedy

    (@fsheedy)

    New function is planned for version 1.x

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘$ instead of £ symbol on price’ is closed to new replies.