进入:\magento\app\design\frontend\base\default\template\directory\currency.phtml
改为以下: <?php echo $_name ?> - <?php echo $_code ?>替换成:
<?php if($_code == "USD"){
$symbol = Mage::app()->getLocale()->currency('USD')->getSymbol();
}elseif($_code == "BSD"){
$symbol = Mage::app()->getLocale()->currency('BSD')->getSymbol();
}elseif($_code == "ARS"){
$symbol = Mage::app()->getLocale()->currency('ARS')->getSymbol();
}elseif($_code == "AUD"){
$symbol = Mage::app()->getLocale()->currency('AUD')->getSymbol();
}elseif($_code == "BBD"){
$symbol = Mage::app()->getLocale()->currency('BBD')->getSymbol();
}elseif($_code == "BZD"){
$symbol = Mage::app()->getLocale()->currency('BZD')->getSymbol();
}elseif($_code == "BMD"){
$symbol = Mage::app()->getLocale()->currency('BMD')->getSymbol();
}elseif($_code == "BRL"){
$symbol = Mage::app()->getLocale()->currency('BRL')->getSymbol();
}elseif($_code == "GBP"){
$symbol = Mage::app()->getLocale()->currency('GBP')->getSymbol();
}elseif($_code == "BND"){
$symbol = Mage::app()->getLocale()->currency('BND')->getSymbol();
}elseif($_code == "CAD"){
$symbol = Mage::app()->getLocale()->currency('CAD')->getSymbol();
}elseif($_code == "CVE"){
$symbol = Mage::app()->getLocale()->currency('CVE')->getSymbol();
}elseif($_code == "KYD"){
$symbol = Mage::app()->getLocale()->currency('KYD')->getSymbol();
}elseif($_code == "CLP"){
$symbol = Mage::app()->getLocale()->currency('CLP')->getSymbol();
}elseif($_code == "CNY"){
$symbol = Mage::app()->getLocale()->currency('CNY')->getSymbol();
}elseif($_code == "COP"){
$symbol = Mage::app()->getLocale()->currency('COP')->getSymbol();
}elseif($_code == "CRC"){
$symbol = Mage::app()->getLocale()->currency('CRC')->getSymbol();
}elseif($_code == "CUP"){
$symbol = Mage::app()->getLocale()->currency('CUP')->getSymbol();
}elseif($_code == "CZK"){
$symbol = Mage::app()->getLocale()->currency('CZK')->getSymbol();
}elseif($_code == "DOP"){
$symbol = Mage::app()->getLocale()->currency('DOP')->getSymbol();
}elseif($_code == "XCD"){
$symbol = Mage::app()->getLocale()->currency('XCD')->getSymbol();
}elseif($_code == "EGP"){
$symbol = Mage::app()->getLocale()->currency('EGP')->getSymbol();
}elseif($_code == "EUR"){
$symbol = Mage::app()->getLocale()->currency('EUR')->getSymbol();
}elseif($_code == "FKP"){
$symbol = Mage::app()->getLocale()->currency('FKP')->getSymbol();
}elseif($_code == "FJD"){
$symbol = Mage::app()->getLocale()->currency('FJD')->getSymbol();
}elseif($_code == "GIP"){
$symbol = Mage::app()->getLocale()->currency('GIP')->getSymbol();
}elseif($_code == "GYD"){
$symbol = Mage::app()->getLocale()->currency('GYD')->getSymbol();
}elseif($_code == "HKD"){
$symbol = Mage::app()->getLocale()->currency('HKD')->getSymbol();
}elseif($_code == "ILS"){
$symbol = Mage::app()->getLocale()->currency('ILS')->getSymbol();
}elseif($_code == "JMD"){
$symbol = Mage::app()->getLocale()->currency('JMD')->getSymbol();
}elseif($_code == "JPY"){
$symbol = Mage::app()->getLocale()->currency('JPY')->getSymbol();
}elseif($_code == "LAK"){
$symbol = Mage::app()->getLocale()->currency('LAK')->getSymbol();
}elseif($_code == "LBP"){
$symbol = Mage::app()->getLocale()->currency('LBP')->getSymbol();
}elseif($_code == "LRD"){
$symbol = Mage::app()->getLocale()->currency('LRD')->getSymbol();
}elseif($_code == "MOP"){
$symbol = Mage::app()->getLocale()->currency('MOP')->getSymbol();
}elseif($_code == "MUR"){
$symbol = Mage::app()->getLocale()->currency('MUR')->getSymbol();
}elseif($_code == "MNT"){
$symbol = Mage::app()->getLocale()->currency('MNT')->getSymbol();
}elseif($_code == "NAD"){
$symbol = Mage::app()->getLocale()->currency('NAD')->getSymbol();
}elseif($_code == "NPR"){
$symbol = Mage::app()->getLocale()->currency('NPR')->getSymbol();
}elseif($_code == "NGN"){
$symbol = Mage::app()->getLocale()->currency('NGN')->getSymbol();
}elseif($_code == "PAB"){
$symbol = Mage::app()->getLocale()->currency('PAB')->getSymbol();
}elseif($_code == "PEN"){
$symbol = Mage::app()->getLocale()->currency('PEN')->getSymbol();
}elseif($_code == "PHP"){
$symbol = Mage::app()->getLocale()->currency('PHP')->getSymbol();
}elseif($_code == "RHD"){
$symbol = Mage::app()->getLocale()->currency('RHD')->getSymbol();
}elseif($_code == "SVC"){
$symbol = Mage::app()->getLocale()->currency('SVC')->getSymbol();
}elseif($_code == "WST"){
$symbol = Mage::app()->getLocale()->currency('WST')->getSymbol();
}elseif($_code == "RSD"){
$symbol = Mage::app()->getLocale()->currency('RSD')->getSymbol();
}elseif($_code == "SGD"){
$symbol = Mage::app()->getLocale()->currency('SGD')->getSymbol();
}elseif($_code == "SGD"){
$symbol = Mage::app()->getLocale()->currency('SGD')->getSymbol();
}elseif($_code == "KRW"){
$symbol = Mage::app()->getLocale()->currency('KRW')->getSymbol();
}elseif($_code == "CHF"){
$symbol = Mage::app()->getLocale()->currency('CHF')->getSymbol();
}elseif($_code == "SYP"){
$symbol = Mage::app()->getLocale()->currency('SYP')->getSymbol();
}elseif($_code == "THB"){
$symbol = Mage::app()->getLocale()->currency('THB')->getSymbol();
}elseif($_code == "TOP"){
$symbol = Mage::app()->getLocale()->currency('TOP')->getSymbol();
}elseif($_code == "TTD"){
$symbol = Mage::app()->getLocale()->currency('TTD')->getSymbol();
}elseif($_code == "UYU"){
$symbol = Mage::app()->getLocale()->currency('UYU')->getSymbol();
}elseif($_code == "VEF"){
$symbol = Mage::app()->getLocale()->currency('VEF')->getSymbol();
}elseif($_code == "VND"){
$symbol = Mage::app()->getLocale()->currency('VND')->getSymbol();
}elseif($_code == "ZWD"){
$symbol = Mage::app()->getLocale()->currency('ZWD')->getSymbol();
}elseif($_code == "INR"){
$symbol = Mage::app()->getLocale()->currency('INR')->getSymbol();
}elseif($_code == "RUB"){
$symbol = Mage::app()->getLocale()->currency('RUB')->getSymbol();
}else{
$symbol = "";
}?>
<?php echo $symbol." ".$_name." - ".$_code; ?>
=============================
以下是完整页显示:
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category design
* @package base_default
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<?php
/**
* Currency switcher
*
* @see Mage_Directory_Block_Currency
*/
?>
<?php if($this->getCurrencyCount()>1): ?>
<div class="block block-currency">
<div class="block-title">
<strong><span><?php echo $this->__('Select Your Currency') ?></span></strong>
</div>
<div class="block-content">
<select name="currency" title="<?php echo $this->__('Select Your Currency') ?>" onchange="setLocation(this.value)">
<?php foreach ($this->getCurrencies() as $_code => $_name): ?>
<option value="<?php echo $this->getSwitchCurrencyUrl($_code) ?>"<?php if($_code==$this->getCurrentCurrencyCode()): ?> selected="selected"<?php endif; ?>>
<!--junpeng edit start-->
<?php if($_code == "USD"){
$symbol = Mage::app()->getLocale()->currency('USD')->getSymbol();
}elseif($_code == "BSD"){
$symbol = Mage::app()->getLocale()->currency('BSD')->getSymbol();
}elseif($_code == "ARS"){
$symbol = Mage::app()->getLocale()->currency('ARS')->getSymbol();
}elseif($_code == "AUD"){
$symbol = Mage::app()->getLocale()->currency('AUD')->getSymbol();
}elseif($_code == "BBD"){
$symbol = Mage::app()->getLocale()->currency('BBD')->getSymbol();
}elseif($_code == "BZD"){
$symbol = Mage::app()->getLocale()->currency('BZD')->getSymbol();
}elseif($_code == "BMD"){
$symbol = Mage::app()->getLocale()->currency('BMD')->getSymbol();
}elseif($_code == "BRL"){
$symbol = Mage::app()->getLocale()->currency('BRL')->getSymbol();
}elseif($_code == "GBP"){
$symbol = Mage::app()->getLocale()->currency('GBP')->getSymbol();
}elseif($_code == "BND"){
$symbol = Mage::app()->getLocale()->currency('BND')->getSymbol();
}elseif($_code == "CAD"){
$symbol = Mage::app()->getLocale()->currency('CAD')->getSymbol();
}elseif($_code == "CVE"){
$symbol = Mage::app()->getLocale()->currency('CVE')->getSymbol();
}elseif($_code == "KYD"){
$symbol = Mage::app()->getLocale()->currency('KYD')->getSymbol();
}elseif($_code == "CLP"){
$symbol = Mage::app()->getLocale()->currency('CLP')->getSymbol();
}elseif($_code == "CNY"){
$symbol = Mage::app()->getLocale()->currency('CNY')->getSymbol();
}elseif($_code == "COP"){
$symbol = Mage::app()->getLocale()->currency('COP')->getSymbol();
}elseif($_code == "CRC"){
$symbol = Mage::app()->getLocale()->currency('CRC')->getSymbol();
}elseif($_code == "CUP"){
$symbol = Mage::app()->getLocale()->currency('CUP')->getSymbol();
}elseif($_code == "CZK"){
$symbol = Mage::app()->getLocale()->currency('CZK')->getSymbol();
}elseif($_code == "DOP"){
$symbol = Mage::app()->getLocale()->currency('DOP')->getSymbol();
}elseif($_code == "XCD"){
$symbol = Mage::app()->getLocale()->currency('XCD')->getSymbol();
}elseif($_code == "EGP"){
$symbol = Mage::app()->getLocale()->currency('EGP')->getSymbol();
}elseif($_code == "EUR"){
$symbol = Mage::app()->getLocale()->currency('EUR')->getSymbol();
}elseif($_code == "FKP"){
$symbol = Mage::app()->getLocale()->currency('FKP')->getSymbol();
}elseif($_code == "FJD"){
$symbol = Mage::app()->getLocale()->currency('FJD')->getSymbol();
}elseif($_code == "GIP"){
$symbol = Mage::app()->getLocale()->currency('GIP')->getSymbol();
}elseif($_code == "GYD"){
$symbol = Mage::app()->getLocale()->currency('GYD')->getSymbol();
}elseif($_code == "HKD"){
$symbol = Mage::app()->getLocale()->currency('HKD')->getSymbol();
}elseif($_code == "ILS"){
$symbol = Mage::app()->getLocale()->currency('ILS')->getSymbol();
}elseif($_code == "JMD"){
$symbol = Mage::app()->getLocale()->currency('JMD')->getSymbol();
}elseif($_code == "JPY"){
$symbol = Mage::app()->getLocale()->currency('JPY')->getSymbol();
}elseif($_code == "LAK"){
$symbol = Mage::app()->getLocale()->currency('LAK')->getSymbol();
}elseif($_code == "LBP"){
$symbol = Mage::app()->getLocale()->currency('LBP')->getSymbol();
}elseif($_code == "LRD"){
$symbol = Mage::app()->getLocale()->currency('LRD')->getSymbol();
}elseif($_code == "MOP"){
$symbol = Mage::app()->getLocale()->currency('MOP')->getSymbol();
}elseif($_code == "MUR"){
$symbol = Mage::app()->getLocale()->currency('MUR')->getSymbol();
}elseif($_code == "MNT"){
$symbol = Mage::app()->getLocale()->currency('MNT')->getSymbol();
}elseif($_code == "NAD"){
$symbol = Mage::app()->getLocale()->currency('NAD')->getSymbol();
}elseif($_code == "NPR"){
$symbol = Mage::app()->getLocale()->currency('NPR')->getSymbol();
}elseif($_code == "NGN"){
$symbol = Mage::app()->getLocale()->currency('NGN')->getSymbol();
}elseif($_code == "PAB"){
$symbol = Mage::app()->getLocale()->currency('PAB')->getSymbol();
}elseif($_code == "PEN"){
$symbol = Mage::app()->getLocale()->currency('PEN')->getSymbol();
}elseif($_code == "PHP"){
$symbol = Mage::app()->getLocale()->currency('PHP')->getSymbol();
}elseif($_code == "RHD"){
$symbol = Mage::app()->getLocale()->currency('RHD')->getSymbol();
}elseif($_code == "SVC"){
$symbol = Mage::app()->getLocale()->currency('SVC')->getSymbol();
}elseif($_code == "WST"){
$symbol = Mage::app()->getLocale()->currency('WST')->getSymbol();
}elseif($_code == "RSD"){
$symbol = Mage::app()->getLocale()->currency('RSD')->getSymbol();
}elseif($_code == "SGD"){
$symbol = Mage::app()->getLocale()->currency('SGD')->getSymbol();
}elseif($_code == "SGD"){
$symbol = Mage::app()->getLocale()->currency('SGD')->getSymbol();
}elseif($_code == "KRW"){
$symbol = Mage::app()->getLocale()->currency('KRW')->getSymbol();
}elseif($_code == "CHF"){
$symbol = Mage::app()->getLocale()->currency('CHF')->getSymbol();
}elseif($_code == "SYP"){
$symbol = Mage::app()->getLocale()->currency('SYP')->getSymbol();
}elseif($_code == "THB"){
$symbol = Mage::app()->getLocale()->currency('THB')->getSymbol();
}elseif($_code == "TOP"){
$symbol = Mage::app()->getLocale()->currency('TOP')->getSymbol();
}elseif($_code == "TTD"){
$symbol = Mage::app()->getLocale()->currency('TTD')->getSymbol();
}elseif($_code == "UYU"){
$symbol = Mage::app()->getLocale()->currency('UYU')->getSymbol();
}elseif($_code == "VEF"){
$symbol = Mage::app()->getLocale()->currency('VEF')->getSymbol();
}elseif($_code == "VND"){
$symbol = Mage::app()->getLocale()->currency('VND')->getSymbol();
}elseif($_code == "ZWD"){
$symbol = Mage::app()->getLocale()->currency('ZWD')->getSymbol();
}elseif($_code == "INR"){
$symbol = Mage::app()->getLocale()->currency('INR')->getSymbol();
}elseif($_code == "RUB"){
$symbol = Mage::app()->getLocale()->currency('RUB')->getSymbol();
}else{
$symbol = "";
}?>
<?php echo $symbol." ".$_name." - ".$_code; ?>
<!--junpeng eidt end-->
</option>
<?php endforeach; ?>
</select>
</div>
</div>
<?php endif; ?>