WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Rupee Symbol not showing

Rupee Symbol not showing

Viewing 14 replies - 1 through 14 (of 14 total)
  • The symbol displays correctly on my system. Is you site using UTF-8 encoding for database and Web pages?

    If you don’t have an encoding meta tag in your pages try adding this to the page header and see if that resolves the issue for you:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    No , this did’nt work .
    Will it break any functionality if I replace “&#8377” with “Rs” in woocommerce/woocommerce-core-functions.php ?

    @gtantra, try this:
    case ‘INR’: $currency_symbol = ‘Rp’; break;

    Yes @terrytsang . I just want to know if changing the symbol there will break any functionality or create some error ?

    *its Rs and not Rp

    i have tried testing last time at my local, it is working without any error. Why not you have a try at your site?

    @terrytsang . Yes “Rs” does work .
    What i meant is since its a payment gateway – I hope it does’nt affect the payments in anyway / and also that it recognizes the currency INR.
    I guess I’l keep the “Rs” symbol – if there is no further reply from woo-commerce .
    Thanks All

    @gtantra, i believe the symbol is just a viewing option, woocommerce will use ‘INR’ for payment purpose only.

    @terrytsang, Ya – I suppose your right .
    Many thanks for the help …

    Go to Appearance > Editor
    Click on Theme Functions(functions.php)
    note:if u are usig a child theme then go to the parent theme and edit the functions.php
    Scroll to the very bottom and add a new line after the very last character
    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;
    }

    the above thing worked for me so i have posted it
    if u have any problem reply

    Thank u very much. Its working vinodsai

    thanks vinod 🙂

    add this script in your header.php to convert all “Rs” or “Rs.” to the rupee symbol

    <script src=”http://cdn.webrupee.com/js” type=”text/javascript”></script>

    use the code provided above by vinodsai if you’re getting box instead of Rs / Rs.

    thank you so so so much vinodsai….

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Rupee Symbol not showing’ is closed to new replies.
Skip to toolbar