zencart教程 下载本文

zen cart模板文件列表:

文件路径

index.php

includes/templates/[custom template folder]/common/html_header.php includes/templates/[custom template folder]/common/tpl_main_page.php includes/templates/[custom template folder]/common/tpl_header.php (column left)

includes/templates/[custom template folder]/common/main_template_vars.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

注释 主文件

页面的head部分 页面的body部分 所有页面的页眉

决定页面的内容部分,缺省为 ‘tmp_index_default.php’

首页模板文件

首页上显示分类时的模板文件

选择要显示的分类 显示分类

首页上显示指定的分类时采用的模板文件 将商品数据添加到数组 显示商品数量和商品导航菜单

显示商品数组

显示单件商品信息

购物车页面

所有页面的页脚

默认的zen-cart模板template_default下面的文件夹中主要是以下几个:

? buttons:这里面是zen-cart网站上的按钮,包括加入购物车(add to cart)等。 ? common:这里面是通用的,共同的部分,包括头部(tpl_header.php)等。 ? images:这里面是网站上的一些图片,包括logo等。

? css:这里面是zen-cart网站的css文件,包括stylesheet.css文件等。 ? sideboxes:这里是zen-cart网站左右两栏的边栏的文件,包括tpl_categories.php文件等。

? templates:这里是zen-cart网站的其他的页面模板,包括首页的模板文件(tpl_index_default.php)等。