Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:57:11+00:00 2026-05-23T00:57:11+00:00

I have to keep USD as base currency to enable PayPal but I have

  • 0

I have to keep USD as base currency to enable PayPal but I have kept default display currency as INR. Now conversion rate of 45rs per USD give me nasty decimal INR prices, I wana get rid of that, Magento must be using some function to convert price from base currency to INR while showing up INR prices everywhere, What is that function and How can I modify it to always give round off values??

I found :

$price = Mage::helper('directory')->currencyConvert($tax->getPrice($product, $product->getFinalPrice(), false), $fromCur, $toCur);

Is this the function Magento itself uses to convert prices in different currencies, If it is where it is defined?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:57:12+00:00Added an answer on May 23, 2026 at 12:57 am

    The currency conversion is performed by Mage_Directory_Model_Currency in the following method.

    public function convert($price, $toCurrency=null)
    {
        if (is_null($toCurrency)) {
            return $price;
        }
        elseif ($rate = $this->getRate($toCurrency)) {
            return $price*$rate;
        }
    
        throw new Exception(Mage::helper('directory')->__('Undefined rate from "%s-%s".', $this->getCode(), $toCurrency->getCode()));
    }
    

    You could create an app/code/local version of this file, or write your own module and rewrite the core.

    Make sure you test this very carefully in your dev server and Paypal sandbox, since Paypal will reject any transactions that have errors!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UINavigationController and I have to keep the the default back button
i am working on Twitter on iPhone now i have to keep the count
I have to keep track of all comparisons in this selection sort, but when
We have to keep 2 product versions. Now, some changes in each version have
I have a situation in my project where I have to keep using a
Currently I'm finding I have to keep duplicating partials for different modules. I would
How do many of the websites that have logins keep the username in the
I am working on an application where I have to keep data sequenced, every
I wanted some system where I didn't have to keep looking at the Exception
In my implementation of JTable . I have to keep some columns editable and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.