Home Forums Theme Support Dokan Withdraw Email Showing weird character

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17907

    Mohd Ghufran
    Member
    Post count: 25

    Hi Support,

    I've made some withdraw testing, the email sent out a weird character in currency, see screenshot :

    Withdraw email

    #17913

    Tareq Hasan
    Keymaster
    Post count: 2831

    What currency you are using?

    #17921

    Mohd Ghufran
    Member
    Post count: 25

    Malaysian Ringgit

    Currency position : Left with space

    #17935

    Tareq Hasan
    Keymaster
    Post count: 2831

    On /classes/email.php line 66, there is a function called currency_symbol. Which reads like this:
    [php]
    function currency_symbol( $amount ) {
    $price = sprintf( get_woocommerce_price_format(), get_woocommerce_currency_symbol(), $amount );
    $price = str_replace( array(‘£', ‘€', ‘$'), array(‘£', ‘EUR', ‘$'), $price);

    return $price;
    }
    [/php]

    Replace with this:
    [php]
    function currency_symbol( $amount ) {
    $price = sprintf( get_woocommerce_price_format(), get_woocommerce_currency_symbol(), $amount );

    return html_entity_decode( $price );
    }
    [/php]

    We'll push the fix in the next update.

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

The topic ‘Withdraw Email Showing weird character’ is closed to new replies.