WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Rupee Symbol not showing (15 posts)

  1. Gtantra
    Member
    Posted 1 year ago #

    I set my currency to Indian Rupee. But instead of the rupee symbol I get a square box ( like an unrecognized character ). Any suggestions ?
    In : woocommerce/woocommerce-core-functions.php - I get

    case 'INR' : $currency_symbol = '& #8377 ;'; break;

    Any Suggestions

    http://wordpress.org/extend/plugins/woocommerce/

  2. IgniteWoo
    Member
    Posted 1 year ago #

    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" />
  3. Gtantra
    Member
    Posted 1 year ago #

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

  4. terrytsang
    Member
    Posted 1 year ago #

    @Gtantra, try this:
    case 'INR': $currency_symbol = 'Rp'; break;

  5. Gtantra
    Member
    Posted 1 year ago #

    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

  6. terrytsang
    Member
    Posted 1 year ago #

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

  7. Gtantra
    Member
    Posted 1 year ago #

    @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

  8. terrytsang
    Member
    Posted 1 year ago #

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

  9. Gtantra
    Member
    Posted 1 year ago #

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

  10. vinodsai
    Member
    Posted 10 months ago #

    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;
    }

  11. vinodsai
    Member
    Posted 10 months ago #

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

  12. vikram2030
    Member
    Posted 7 months ago #

    Thank u very much. Its working vinodsai

  13. kiranwtr
    Member
    Posted 6 months ago #

    thanks vinod :)

  14. shishirumrao
    Member
    Posted 6 months ago #

    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.

  15. Rony patel
    Member
    Posted 6 months ago #

    thank you so so so much vinodsai....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.