Magento 获取当前货币和货币符How to get current currency in Magento
来源:互联网 发布:php输出当前时间戳 编辑:程序博客网 时间:2024/05/17 01:26
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(); ?>
source: http://justcoding.iteye.com/blog/2124552
0 0
- Magento 获取当前货币和货币符How to get current currency in Magento
- How to get current date in magento?
- magento get current variable 获取当前的通用变量
- magento修改货币符号和货币符号的位置
- magento修改货币符号和货币符号的位置
- How to use getBodyClass() in magento?
- How to overload controller in Magento?
- How to create custom price in Magento?
- magento,货币自动切换---根据IP
- Magento货币及汇率设置指南
- how to get current path in qt
- magento获取当前路径
- magento获取当前路径
- Magento: How to get controller, module, action and router name?
- How to get currency symbol?
- How to setup/configure multiple stores in Magento?
- How to calculate the tier prices in Magento
- 新建一个分类的api ,Create new magento Rest api to get category list in magento
- iOS CoreImage滤镜 图片处理效果
- SegmentFault 巨献 1024 程序员护卫队#1红岸的呼唤
- 获取Android设备上的所有存储设备
- 关于SQL Server 2008 安装提示"重新启动计算机失败"的解决办法
- vim中大小写转化
- Magento 获取当前货币和货币符How to get current currency in Magento
- nodejs MODEL层 封装(二)
- lua稀疏table转换为json
- 使用get set方法设置变量时,最开始申明的变量值不会随着get set而改变
- Android Studio 快捷键汇总
- 博客菜鸟驾到
- excel 、 csv 文件上传
- php单引号和双引号的区别,简单例子对比
- UVA 11916 Emoogle Grid(大步小步算法(解模方程对数) 快速幂 模的逆)