Display Currency Code Infront of Symbol in WooCommerce

Display Currency Code Infront of Symbol in WooCommerce

WooCommerce has the use of options for multiple currencies right out of the box. WooCommerce comes bundled with dozens of different currencies you can use in your store, there are snippets to add extra currencies, there’s also have a really nice Currency Converter Widget to help you display different currencies in your store.

function patricks_currency_symbol( $currency_symbol, $currency ) {
    switch( $currency ) {
        case 'USD':
            $currency_symbol = 'USD $';
        case 'NZD':
            $currency_symbol = '$NZ';
        case 'AUD':
            $currency_symbol = 'AUD $';
    return $currency_symbol;

add_filter('woocommerce_currency_symbol', 'patricks_currency_symbol', 30, 2);
We Well organized and easy-to-understand Interactive tutorials With lots of examples of how to use Tutorials WordPress, PHP, Bootstrap, Bootstrap 4, HTML, CSS, AJAX, jQuery, Woocommerce, Post, Database, Javascript, Theme, Responsive, Templates.

Leave a Reply

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

Contact us

Fill in the form below or give us a call and we'll contact you. We endeavour to answer all enquiries within 24 hours on business days.