Question

How can I add currency symbols into the currency list?

This is the code,

<?php if($this->getCurrencyCount() > 1): ?>
<div class="form-micro">

    <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()): ?>
                selected="SELECTED"
            <?php endif; ?>>
            <?php echo $_name ?>
        </option>
        <?php endforeach; ?>

    </select>
</div>
<?php endif; ?>  

will output,

    <option ...>Euro</option>
    <option ...>British Pound</option>
    <option ...>Danish Krone</option>
    <option ...>Swedish Krona</option>
    <option ...>Swiss Franc</option>
    <option ...>United States Dollars</option>

But I need to add their symbols after the text,

    <option ...>Euro &euro;</option>
    <option ...>British Pound &pound;</option>
    <option ...>Danish Krone DKK</option>
    <option ...>Swedish Krona SEK</option>
    <option ...>Swiss Franc CHF</option>
    <option ...>United States Dollars $</option>

Is it possible?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top