It is easy to set-up multi-currencies in Magento. This code  allows you to quickly include a currency drop down or link to  the header or footer of your Magento store. Before you begin make sure you have enabled more than one currency  as this example won’t work without at least one additional currency alongside your base currency.

Set-up the following code in your theme directory. I’ve included code for both a drop down select box, or inline list of hyperlinks.


Display as a select drop-down

<?php if($this->getCurrencyCount() > 1): ?>
<div class="currency input-group">
   <label class="input-group-label" for="custom-currency-selector"><?php echo $this->__('Your Currency:') ?></label>
   <select class="input-group-field" onchange="window.location.href=this.value" name="custom-currency-selector" id="custom-currency-selector">
   <?php foreach ($this->getCurrencies() as $iso => $name): ?>
      <option value="<?php echo $this->getSwitchCurrencyUrl($iso)?>" <?php if($iso == $this->getCurrentCurrencyCode()): ?>selected <?php endif; ?>>
         <?php echo $iso ?> - <?php echo $name ?>
   <?php endforeach; ?>
<?php endif; ?>
<?php if($this->getCurrencyCount() > 1): $count = 0; ?>
<ul class="inline-list">
   <?php foreach ($this->getCurrencies() as $iso => $name): ?>
         <?php if($iso == $this->getCurrentCurrencyCode()): ?>
            <strong><?php echo $iso ?></strong>
         <?php else: ?>
            <a href="<?php echo $this->getSwitchCurrencyUrl($iso)?>" ><?php echo $iso ?></a>
         <?php endif; ?>
      <?php $count++; if ( $this->getCurrencyCount() > $count ) { echo " <li>/</li>"; } ?>
   <?php endforeach; ?>
<?php endif; ?>

Then include the following in your /app/design/layout/local.xml. The reference tag can be changed from header to footer depending on where you want to include the currency switcher on the page.

<?xml version="1.0"?>
<layout version="0.1.0">
      <reference name="header">
         <block type="directory/currency" name="custom_currency_selector" template="currency/currency.phtml"/>

The final step is to include the block in either header.phtml or footer.phtml as outlined above.

<?php echo $this->getChildHtml('custom_currency_selector') ?>


Magento is a feature-rich ecommerce platform built on open-source technology that provides online merchants with unprecedented flexibility and control over the look, content and functionality of their ecommerce store.

About Magento Ecommerce · Magento Posts

Related Magento Posts

Getting Started with Magento Open Source

Magento Northern Ireland Open Source allows you to build a unique online store from the ground up. ## Standard Features Magento Open Source includes everything... November 2022 · Magento

Magento - WebP Image Format Conversion

An introduction to image optimisation in Magento Northern Ireland **[Image Optimisation](/web-image-formats)** is an increasingly important step improve page speed and search engine performance of your... September 2022 · Magento

Aheadworks switch to subscription model

Aheadworks will be removing Composer keys and download access for existing customers and switching entirely to a subscription model. From February 2022 Aheadworks announced it... March 2022 · Magento

More Magento Posts...