New Landing How can we help? Themeforest Theme Support Neighborhood Currency NZD to appear next to price

Viewing 2 posts - 1 through 2 (of 2 total)
  • #282807
    emair
    Member
    Post count: 19

    Hello,

    I was wondering if I would be able to have the NZD next to the product pricing at all?

    I look forward to your reply.

    Thanks,

    #282849
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    function sf_currency_symbol_new( $currency_symbol, $currency ) {
        switch( $currency ) {
            case 'USD':
                $currency_symbol = 'USD $';
                break;
            case 'NZD':
                $currency_symbol = 'NZD $';
                break;
            case 'AUD':
                $currency_symbol = 'AUD $';
                break;
        }
        return $currency_symbol;
    }
    add_filter('woocommerce_currency_symbol', 'sf_currency_symbol_new', 30, 2);

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register