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

  5Comments

  1. fnue   •  

    Thank you so much!!

  2. Sofia   •  

    Perfect!! thank youuuuu!! Save my day

  3. Jorge Rivero   •  

    Perfect! It worked like a charm!

  4. reyn   •  

    Thank You!

Leave a Reply

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