• Firstly Thanks to vinodsai

    I’ve found the rude way of tagging the Indian rupee symbol from font awesome fonts

    <i class=”fa fa-inr”></i>

    The Below was the modified code.. It just works as spark.
    Just place the below code at the end of the theme functions.php

    add_filter( 'woocommerce_currencies', 'add_inr_currency' );
    add_filter( 'woocommerce_currency_symbol', 'add_inr_currency_symbol' );
    
    function add_inr_currency( $currencies ) {
        $currencies['INR'] = 'INR';
        return $currencies;
    }
    
    function add_inr_currency_symbol( $symbol ) {
    	$currency = get_option( 'woocommerce_currency' );
    	switch( $currency ) {
    		case 'INR': $symbol = "<i class='fa fa-inr'></i> "; break;
    	}
    	return $symbol;
    }
  • The topic ‘[FIX]Adding Indian Rupee Symbol Pefectly Solved’ is closed to new replies.