HOW TO CHANGE INDIAN RUPEE CURRENCY SYMBOL IN WOOCOMMERCE

  • AUTHOR: // CATEGORY: WooCommerce, WordPress

    No Comments

    To change rupee symbol from default one(Rs.) to ₹ put this code in your theme’s functions.php file

    add_filter('woocommerce_currency_symbol', 'inr_currency_symbol', 10, 2);
    
    function inr_currency_symbol( $currency_symbol, $currency ) {
    	switch( $currency ) {
    		case 'INR': $currency_symbol = '₹';
    			break;
    	}
    	return $currency_symbol;
    }
    
    LinkedInShare

    Comments

    comments

COMMENTS

0 Responses to How to Change Indian Rupee Currency Symbol in WooCommerce

LEAVE A REPLY

FILL THE FIELDS TO LEAVE A REPLY. Your email address will not be published.