Hi,
In woo commerce the currency for Indian Shows as a small box. I would like it to mention INR or Rs.
this can be done with a code which is tested on other basic themes by adding on the function.php. But when i put this code on neighborhood funtions. the whole site has codes displayed on the backend and gets quite scary. can u please help me where to add a code in the theme so that i can show the woo commerece Indian currency as Rs. As i guess editing the theme function file is giving problems however it works fine on the stadard woocommerce theme.
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;
}