Thursday, June 30, 2011

How to get current currency and currency symbol in Magento

To get Current Currency
$currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); 
To get current currency symbol use:
Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();

Tuesday, June 14, 2011

Block reference is empty in magento widget

Add the following code in your current theme "page.xml" file.

 

This helps to display widget content in your current theme product page.

Thursday, June 9, 2011