0

I have created a template file in my custom module and I want to load all currency symbol data in my template file similar to Manage Currency -> Symbol block.

I tried :

$currencysymbol = $this->getLayout()->getBlock('currencysymbol/system_currencysymbol');
$currencysymbol->getCurrencySymbolsData();

But getting error Call to a member function getCurrencySymbolsData() on a non-object.

How to get all currency symbol in custom template file?

1

You can retrieve the currency symbols from Mage_CurrencySymbol_Model_System_Currencysymbol class.

$currencySymbol = Mage::getModel('currencysymbol/system_currencysymbol')->getCurrencySymbolsData();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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