.

.

How to change the currency selector with flag in magento

1. You need to prepare a flag list (images). 
2. Upload flag list to root/media/flag directory 
3. Rename flags to currency’s code (EX: US Dollar -> usd.jpg, INR -> inr.jpg...) 
4. In the template file: app/design/frontend/default/your_theme/template/directory/currency.phtml (or app/design/frontend/base/default/template/directory/currency.phtml), change code to:

<ul>
  
<?php foreach ($this->getCurrencies() as $_code => $_name): ?>
  
<li>
          <
a href="<?php echo $this->getSwitchCurrencyUrl($_code) ?>" onclick="setLocation(this.value);">
                   <
img src="<?php echo Mage::getBaseUrl('media').'flag/'.$_code.'.jpg'; ?>" title="<?php echo $_name ?> - <?php echo $_code ?>" alt="<?php echo $_name ?> - <?php echo $_code ?>" width="20" height="20" />
        </
a>
      </
li>
         
        
<?php endforeach; ?>
        
</ul>


EmoticonEmoticon