zen-cart模板参考文档
来源:互联网 发布:魔兽世界dps怎么看数据 编辑:程序博客网 时间:2024/05/31 18:54
Zen Cart的模板设计比较复杂,需要一定的时间来熟悉。一旦你了解了它的结构,就会慢慢习惯了。
首先要阅读常见问答部分的:如何添加、制作新模板。 Zen Cart的设计没有什么特别,与以前设计HTML页面是一样的。只是整个页面分成了好几个部分,并加入了PHP代码。通常,页面分为页眉(header),页脚(footer),边框(sideboxes)。所以设计页面的时候,要记住Zen Cart是如何组织这些页面的。
页面是通过CSS样式表来控制的。样式表控制表格单元的背景图案、字体的颜色和样式等等。所以,假如你需要修改边框标题栏的字体,那么查看样式表文件。
Zen Cart在页面添加图像有两种方式。可以使用图像目录的相对路径,或者在模板中用php变量定义图像。如果你使用https服务器,并且采用相对图像路径,那么https的图像目录下也要有同样的图像,否则https服务器很可能会给出警告提示。
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所有页面的页脚
- zen-cart模板参考文档
- zen-cart全新做一个自己的模板应参考文档
- zen cart -- 开发zen cart模板
- Zen-Cart模板定制
- Zen Cart的模板设计
- Zen Cart模板目录结构
- Zen Cart学习 – Zen Cart模块快速开发文档
- Zen cart模块快速开发文档
- 复制网站zen cart模板的方法
- Zen Cart模板修改常用文件说明
- zen cart template zencart模板修改
- 复制网站Zen Cart模板的方法
- zen-cart修改 zencart 模板修改
- zen cart模板套用会出错
- Zen Cart
- Zen Cart
- Zen Cart
- zen-cart
- Zen-Cart网店系统的SEO
- No suitable driver found for jdbc:mysql(计算机学与哲学)
- 丈夫日记(看得无语,要崩溃了)
- phpmyadmin常用选项设置
- [转] 使用Python写Linux的守护进程(daemon)
- zen-cart模板参考文档
- 动态规划的两个经典问题--01背包
- Wpf usercontrol remove/add
- 一些养生保健小知识
- Flex常用12条代码
- dsniff man
- 常见web通信协议
- 在 Adobe Flex 3 中使用条件编译
- 判断 iframe 是否加载完成的完美方法