Indian Rupees Symbol in Woocommerce site

Opening for Business Development Executive
February 10, 2015
business promotion
Best business steps in 2015
January 1, 2016
Show all

Indian Rupees Symbol in Woocommerce site

rupee symbol not showing

Go to Appearance > Editor
Click on Theme Functions(functions.php) Or Child theme’s function.php

Copy paste the below code to the end of the function.php page.

/*————-*/
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 = ‘Rs.’; break;
}
return $symbol;
}
/*————-*/

Also add this css code to the header.php file

/*————-*/ /*————-*/

For Further assistance or if you need technical help please contact us

Leave a Reply

Your email address will not be published. Required fields are marked *