• Resolved longman2020

    (@longman2020)


    Hi,
    In the latest release I’ve got a problem with currency.
    I use this code in function.php to convert Rial to Toman.

    if ( ! function_exists( 'edd_toman_currency' ) ) {
        function edd_toman_currency( $formatted, $currency, $price ) {
            if ( ! is_admin() ) { 
                    $price = @str_replace( ',', '', $price );
                    $price = @$price / 10; 
                    return $price . ' ?????'; 
            }
            return $price . ' ????'; 
        }
    }
    add_filter( 'edd_rial_currency_filter_after', 'edd_toman_currency', 10, 3 );

    but in the latest release it changed from Toman to rial.
    and the function code doesn’t work any more.
    I also used this plugin but it didn’t work, either.
    https://fa.www.ads-software.com/plugins/edd-rial-to-toman/
    Is there anyway to fix this?
    and I want to say that Toman is more common than Rial in Iran. Please change it to toman in future updates.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘problem in version 2.8 with currency’ is closed to new replies.