Your account expired support, please renew to get your support.

Home Forums Themes Support HelpDesk Adding ISO normative to prices

Viewing 1 reply thread
  • Author
    Posts
    • #32137
      2players
      Support Expired

      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
      Harry
      Support Expired

      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 1 reply thread

You must be logged in to reply to this topic.