Latest Post

Display Currency Code Infront of Symbol for WooCommerce in Wordpress

Display Currency Code Infront of Symbol for WooCommerce in Wordpress

Display Currency Code Infront of Symbol for WooCommerce in Wordpress


This code use for WooCommerce product price Symbol change.

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

add_filter('woocommerce_currency_symbol', 'patricks_currency_symbol', 30, 2);
?>

1 comment:

  1. It is likewise in large part irreversible by way of design, further bolstering the idea of anonymity and doing away with any similarly chances of tracing the money returned to its unique proprietor. Unfortunately, the salient capabilities - velocity, protection, and anonymity - have also made crypto-coins the mode of transaction for severa unlawful trades.How to trade forex and cryptocurrency

    ReplyDelete