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

  6Comments

  1. bhavesh   •  

    thank you so much, this article help me great

  2. fnue   •  

    Thank you so much!!

  3. Sofia   •  

    Perfect!! thank youuuuu!! Save my day

  4. Jorge Rivero   •  

    Perfect! It worked like a charm!

  5. reyn   •  

    Thank You!

Leave a Reply

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