Magento本身自带了多语言货币的功能,非常简单易用,下面将介绍一下怎么配置与使用
进入后台system->Configuration->Current setup
上面图片可以看到
Currency Options
Base Currency 指得是默认汇率转换的基本币种
Default Display Currency 指得是默认显示的币种
Allowed Currencies 指定要显示的币种
设置之后可以到
后台system->Manage Currency->Manage Currency Rate
设置币种之间的汇率
如果前台没有显示可以切换货币的选项说明那个BLOCK没有调用只要调用出来就行了
加载下面的代码到指定的layout配置文件:
<block type="directory/currency" name="tpcurrency" as="tpcurrency" template="directory/currency.phtml" />
然后在template文件调用下面代码:
<?php echo $this->getChildHtml('currency') ?>