WOOCOMMERCE

  • 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