Question

Comment puis-je ajouter de la monnaie symboles dans la monnaie liste?

C'est le 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; ?>  

va-t-il sortir,

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

Mais j'ai besoin d'ajouter leurs symboles après le texte,

    <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>

Est-il possible?

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top