文档介绍:word
word
1 / 9
word
Ecshop多货币
1:在themes下找到自己模板目录,进入library/:
<a href="{$url_head}&currency=USD">美元</a> &nbsp;
<a href="{$url_head}&currency=GBP">英镑</a> &nbsp;
<a href="{$url_head}&currency=EUR">欧元</a> &nbsp;
<a href="{$url_head}&currency=Y">人民币</a> &nbsp;
<a href="{$url_head}&currency=AUD">澳元</a>
自己修改,把RMB改成卢布,然后加上瑞士法郎SEK,加元CAD,代码是:
<a href="?currency=USD">USD</a> &nbsp;
<a href="?currency=GBP">GBP</a> &nbsp;
<a href="?currency=EUR">EUR</a> &nbsp;
<a href="?currency=RUB">RUB</a> &nbsp;
<a href="?currency=AUD">AUD</a> &nbsp;
<a href="?currency=CAD">CAD</a> &nbsp;
<a href="?currency=SEK">SEK</a>
2:在数据库里找到ecs_shop_config表,执行以下sql语句:
INSERT INTO `ecs_shop_config` (
`id` ,
`parent_id` ,
`code` ,
`type` ,
`store_range` ,
`store_dir` ,
`value` ,
`sort_order`
)
word
word
2 / 9
word
VALUES (
NULL , '1', 'rate', 'text', '', '', '1,,,,', '1'
), (
NULL , '1', 'ybprice_format', 'text', '', '', '£%s', '1'
),(
NULL , '1', 'aprice_format', 'text', '', '', '€%s', '1'
),(
NULL , '1', 'cprice_format', 'text', '', '', '¥%s', '1'
),(
NULL , '1', 'aoprice_format', 'text', '', '', 'AU$%s', '1'
);
自己修改代码是:
增加代码:
$_LANG['cfg_name']['rate'] = '货币汇率';
$_LANG['cfg_name']['ybprice_format'] = '英镑格式';
$_LANG['cfg_nam