Posts

Showing posts from February, 2014

Show Currencies with their symbol instead of currency switcher in header

Sometimes clients requirement are different and hence we would need to break our heads to fix their requirement ;) We all know that there's a default currency drop down selector (also called as Currency Switcher ) available in magento (displayed in the top right of our header). I would like to replace that with currency symbols like i.e, $ £ €  So I change the code in your themes "directory/currency.phtml", Replace this code in place of dropdown code:           <ul>         <?php foreach ($this->getCurrencies() as $_code => $_name): ?>         <li>           <a onclick="setLocation('<?php echo $this->getSwitchCurrencyUrl($_code) ?>')"><?php echo Mage::app()->getLocale()->currency($_code)->getSymbol()?> - <?php echo $_code ?></a>          </li>         <?php endforeach; ?>         </ul> Hope this Helps .. Cheers !!