Customize Woocommerce Currency Symbol

Recently one of my clients wanted to change Woocommerce US Dollar sysbol “$”   to “USA$” .

woocommerce currency dollar

I found it to be very easy.  Just insert the following code block to functions.php file under theme folder.

//Change the symbol of an existing currency
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2);
function change_existing_currency_symbol( $currency_symbol, $currency ) {
     switch( $currency ) {
          case 'USD': $currency_symbol = 'USD$'; break;
     }
     return $currency_symbol;
}

Woocommerce currency symbol

  4Comments

  1. Sofia   •  

    Perfect!! thank youuuuu!! Save my day

  2. Jorge Rivero   •  

    Perfect! It worked like a charm!

  3. reyn   •  

    Thank You!

Leave a Reply

Your email address will not be published. Required fields are marked *