0
点赞
收藏
分享

微信扫一扫

Magento 获取当前货币和货币符How to get current currency in Magento

老榆 2023-05-09 阅读 68


We know Magento support multiple currency. I have found the solution to check current currency in the Magento site frontend

 

To get Current Currency

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

 

If you looking for current currency symbol use :

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

举报

相关推荐

0 条评论