如何修改opencart的模版适合为mycncart系统使用

如何修改opencart的模版适合为mycncart系统使用

 

mycncart跟随opencart的最新代码不断进行升级,并改造和不断加入中国特色的功能,因此opencart的模版均不能够拿来直接套用到mycncart使用。

本教程根据适合opencart2.0.2.0和2.0.3.1版本的模版,将其改造为适合 mycncart 1.0.2.0 可用的模版,给大家节省下二次开发的时间。同时,您改造后的模版,可以在 www.mycncart.com 上进行销售或免费分享给大家使用。

1. 地址表单 account/address_form.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;
f. 加入收件人电话号码shipping_telephone部分;

2. 编辑账户 account/edit.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 加入短信验证码部分;
d. 加入有关短信验证码的javascript部分;

3. 注册账户 account/register.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将fax部分去掉;
d. 将address的fieldset部分整个去掉;
e. 将有关country,zone的javascript代码去掉;
f. 加入短信验证码部分;
g. 加入有关短信验证码的javascript部分;

4. 退换货 account/return_form.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将谷歌验证码部分替换为常规验证码部分;

5. 推广会员编辑账户 affiliate/edit.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;

6. 推广会员注册 affiliate/register.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;
f. 添加支付宝alipay选项和填写部分;
g. 替换或调整银行转账部分;

7. 游客结账账单地址 checkout/guest.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;

8. 游客结账配送地址 checkout/guest_shipping.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;
f. 加入收件人电话号码shipping_telephone部分;

9. 结账时登陆客户账单地址 checkout/payment_address.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;

10. 结账时登陆客户配送地址 checkout/shipping_address.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;
f. 加入收件人电话号码shipping_telephone部分;

11. 结账时注册 checkout/register.tpl
a. 将firstname替换为fullname;
b. 将lastname部分去掉;
c. 将address_1替换为address;
d. 将address_2部分去掉;
e. 将国家,地区、城市、地址部分重新排序;

12. 推广会员提款方式 affiliate/payment.tpl
a. 添加支付宝alipay选项和填写部分;
b. 替换或调整银行转账部分;

13. 联系我们 information/contact.tpl
a. 将谷歌验证码部分替换;
b. 替换谷歌地图代码部分;

14. 商品详情页面 product/product.tpl
a. 将谷歌验证码部分替换;
b. 替换验证码部分的#button-review之javascript部分;
c. 将国外的分享代码替换为百度分享代码;

注:
1. 以上涉及到替换的内容,一般可以从对应的default模版下相应文件中找到;
2. 部分模版由于样式等不一样,一次替换时要注意样式随着要改变。
posted @ 2016-02-02 08:35  老榕树  阅读(320)  评论(0编辑  收藏  举报