Formatting product prices in email orders


I’m trying to format prices in case of Indian Rupees. Below is my code and it works in case of email order on hold but how to make it work in case of order-complete?

   //Indian Currency Formatter
add_filter( 'formatted_woocommerce_price','ind_currency_formatter', 100, 1 );

    function ind_currency_formatter($price){
        global $user_currency;
            $price = preg_replace("/(d+?)(?=(dd)+(d)(?!d))(.d+)?/i", "$1,", str_replace( ',', '', $price ));
            return $price;
            return $price;


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

Formatting product prices in email orders</a>
, , , , YeshDev 2 weeks 0 Answers 26 views 0

Leave an answer