zen-cart几个重要模板文件是哪几个:在哪个地方?

ZenCart模板定制指南
本文档介绍了ZenCart电商平台的模板定制流程,包括如何修改CSS文件和三栏布局以实现个性化设计。提供了关键模板文件的位置及用途说明,帮助新手快速上手。

这是一篇已经给转载得快"生锈"的技术文档.有人转载的时候用的 标题是"DIY-Zen Cart的模板设计"或是一些哗众取宠的标题;其实,这个文档最有价值的地方是告诉了新手们------需要修改的文件是哪个,在哪个位置.  
这 只能算是一个模板目录表(其实并不齐全,只有常用的几个). 以下是文摘,去掉了误导的部分:

Zen Cart可以设置成任意的html/flash的界面,只是比通常的html页面的设计费时。你可以从修改缺省的模板开始,先修改CSS文件和三栏格式的 界面。开始先采用不同的颜色,很快就可以设计出完全不同的风格。

提醒:在设计模板前要先计划好你网页的内容,事半功倍。

下 面是zen cart页面各部分相对应模板文件的一个列表: 

文件路径 注释
index.php主文件
includes/templates/[custom template folder]/common/html_header.php页面的head部分
includes/templates/[custom template folder]/common/tpl_main_page.php页面的body部分
includes/templates/[custom template folder]/common/tpl_header.php所有页面的页眉
(column left) 
includes/templates/[custom template folder]/common/main_template_vars.php决定页面 的内容部分,缺省为 'tmp_index_default.php'
首页 - 缺省
includes/templates/[custom template folder]/templates/tmp_index_default.php首页 模板文件
首页 - 显示分类
includes/templates/[custom template folder]/templates/tpl_index_categories.php首页上显示分类时的 模板文件
includes/modules/[custom template folder]/pages/index/category_row.php选择要显示的分类
includes/templates/[custom template folder]/templates/tpl_index_category_row.php显示分类
首页 - 显示指定分类
includes/templates/[custom template folder]/templates/tpl_index_product_list.php首页上显示指定 的分类时采用的模板文件
includes/modules/[custom template folder]/product_listing.php将商品数据添加到数组
includes/templates/[custom template folder]/templates/tpl_modules_product_listing.php显示 商品数量和商品导航菜单
includes/templates/[custom template folder]/common/tpl_list_box_content.php显示商品数组
商品信息页面
includes/templates/[custom template folder]/templates/tpl_product_info_display.php显示单件商 品信息
购物车页面
includes/templates/[custom template folder]/templates/tpl_shopping_cart_default.php购物车页 面
(column right) 
includes/templates/[custom template folder]/common/tpl_footer.php所有页面的页脚
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值