Home    Articles


Magento - how to set up/enable multiple currencies


I will show you how to add / enable multiple currencies for magento and what you need to do in order to make currency switcher to show up in the header.

First of all you need to set up more than 1 currency. 

1. Set up Multiple currencies

Go to Admin area -> System-> Configuration. In the left area click Currency Setup. Like in the image bellow.

Make sure you are on Default Config scope (1) , make sure you've selected multiple currencies. Hold CTRL and click on them.

2. Set Up Currency Rates

Go to Admin area-> System-> Manage Currency -> Rates, then set up rates for all currencies.

!!! IMPORTANT : If some currency will not have a rate it will not show up on frontend as an option. 

3. Code

Use this code to generate currency switcher

<?php if($this->getCurrencyCount() > 1): ?>
<div class="form-language">
    <label for="custom-currency-selector"><?php echo $this->__('Currency:') ?></label>
    <select onchange="window.location.href=this.value" name="custom-currency-selector" id="custom-currency-selector">
        <?php foreach ($this->getCurrencies() as $_code => $_name): ?>
        <option value="<?php echo $this->getSwitchCurrencyUrl($_code)?>"
            <?php if($_code == $this->getCurrentCurrencyCode()): ?>
            <?php endif; ?>>
            <?php echo $_code ?>
        <?php endforeach; ?>
<?php endif; ?>

That's all, save your changes after each step.