How can I change format a price with giving some specific currency code?

I search it on google but only thing which I find is to format price based on selected currency.

But I want to format that price with a specific currency.

Is there is any way to do that??

Any help will be appreciated.

  • Mage::app()->getLocale()->currency('EUR')->toCurrency($price); did you tried that Commented Apr 27, 2016 at 7:22
  • No just tried it.. and works fine! If you can add it as a answer then i can mark it as accept and upvote to you for all community users
    – Asish Hira
    Commented Apr 27, 2016 at 7:29

1 Answer 1


you can format price with below code.

  • can you tell me that how can i remove currency code from the result??
    – Asish Hira
    Commented Apr 27, 2016 at 7:34
  • added the solution hope work for you.. Commented Apr 27, 2016 at 7:37
  • Really you are very intelligent. Thanks for your help
    – Asish Hira
    Commented Apr 27, 2016 at 7:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.