Get the current currency code and symbol in magento

July 8, 2010 | In: Magento

I have tried many times but I didn’t got success . But today I got the solution to show the currency symbol of product price:

Currency Code :

<?php echo $currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>

Currency Symbol :

<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol(); ?>



3 Responses to Get the current currency code and symbol in magento

Avatar

ADi

November 30th, 2011 at 8:04 am

HI

I have a problem in magento when in upload product image then i am geting a HTTP Error or I/O Error .

Can you Please provide me a suitable solution .

Thanks

Avatar

Anonymous

November 30th, 2011 at 1:45 pm

Hi ADi,

What version you are installed on your system? Because sometimes this error happening in magento version 1.6.1.

Avatar

colen mk

February 15th, 2017 at 1:47 pm

Hi I am new to magento…I want the price to be shown as US$50 right now it is shown as $50.I want to show the symbol and code of currency with the price of the product.

Thanks

Comment Form

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Categories

Latest comments


    Fatal error: Uncaught Error: Call to undefined function split() in /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/functions.php:72 Stack trace: #0 /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/sidebar.php(11): mdv_recent_comments() #1 /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/single.php(47): include('/home4/nos/publ...') #2 /home4/nos/public_html/naveenos.com/wp-includes/template-loader.php(74): include('/home4/nos/publ...') #3 /home4/nos/public_html/naveenos.com/wp-blog-header.php(19): require_once('/home4/nos/publ...') #4 /home4/nos/public_html/naveenos.com/index.php(17): require('/home4/nos/publ...') #5 {main} thrown in /home4/nos/public_html/naveenos.com/wp-content/themes/smoker/functions.php on line 72