Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @rissol, you can below code into your theme functions.php:

    add_filter( 'woocommerce_currencies', 'add_custom_currency' );
    
    function add_custom_currency( $currencies ) {
      $currencies["CVE"] = 'Cape Verdean Escudo';
      return $currencies;
    }
    
    add_filter('woocommerce_currency_symbol', 'add_custom_currency_symbol', 10, 2);
    
    function add_custom_currency_symbol( $currency_symbol, $currency ) {
      switch( $currency ) {
        case 'CVE': $currency_symbol = '$'; break;
      }
      return $currency_symbol;
    }
    Thread Starter rissol

    (@rissol)

    thanks Terry I will do that

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Currency’ is closed to new replies.