Home Forums Themes Support HelpDesk Adding ISO normative to prices

This topic contains 1 reply, has 2 voices, and was last updated by  Harry 2 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32137
    2players
    Supported

    Hi!

    As I use USD and ARS and currency symbols are the same I would like to add “ARS” before or after prices in Argentinian Pesos. Do you know if there is some workaround I could try?

    thanks!!

    #32155

    Hi,

    Please add below code to claue-child > functions.php

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

    Kind regards

    Harry
    Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

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

You must be logged in to reply to this topic.