Woo Commerce Indian rupee not displaying properly on product page

Woo Commerce Indian rupee not displaying properly on product page, If you have installed Woo Commerce shopping cart for Indian currency (rupee), after adding the products in product page, the rupee symbol is not showing up and it’s showing square symbol. Then add this code to theme functions.php file. After adding this code square box will be replaced with Rs

Steps to adding code to functions.php

  1. Go to Appearance > Editor
  2. Click on Theme Functions(functions.php)
  3. Scroll to the very bottom and add a new line after the very last character
  4. Copy and paste the following into the document
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;

Note: Also note that any mistakes in editing this file will cause your site to become unavailable. Please have a copy of the theme on your computer in case you must restore the functions.php

Vivek Vengala

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: