magento 價格的貨幣顯示格式

    例如 DE , ES, FR 站下貨幣符號在數字後面,默認爲歐元€ php

處理:設置\lib\Zend\Locale\Data  de.xml  es.xml   fr.xml  currencyformatapp


一、取得Magento的當前貨幣代碼 (currency code) 如 RMB, USD, JPY 等spa

To get Current currency code in Magento, write the following code.code

<?php echo $current_currency_code = Mage::app()->getStore()->getCurrentCurrencyCode(); ?>orm

二、取得Magento的當前貨幣符號 (currency symbol) 如 ¥, $xml

To get Current currency symbol in magento , write the following code.ci

<?php echo $current_currency_symbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();?>get

相關文章
相關標籤/搜索