zencart如何更换模版

本文详细介绍了ZenCart电子商务平台更换模板的过程,包括下载并备份模板文件、安装新模板及配置等步骤。通过简单的操作即可实现网站外观的快速更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

zencart如何更换模版
从换模版开始:
一、准备工作 1.下载zencart模板 2.备份好网店数据库和原来的模板文件个性化网页!
二、安装zencart模板 1.将下载后的模板包用winrar或7zip解压缩。 2.将模板目录整个复制到 includes/templates/ 下。


三、选择新安装的模板 1.进入zencart后台管理,工具(Tools)–模板选择(Template Selection),可以看到右边已安装模板有模板名:Bruce 2.选择要替换哪个现有模板(这里选的是ZCDemo Chinese),然后点击右边的编辑按钮,从现安装模板的下拉菜单中选择新模板,最后点击更新按钮。 3.此时Default(All)语言使用了Bruce这个新模板。但是还没有生效。
四、正式启用刚选择的模板。 1.转到工具(Tools)–外观设置(Layout Boxes Controller), 2. 在屏幕最下面,选择“重置”按钮。
主要文件路径:
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 所有页面的页脚
.IMLhGedWbazen{ width:1160px;margin:0 auto;padding:0; overflow:hidden; } .lista{height:auto; display:none;} .active{ display:block;} .AiEosctbazen{ margin-left:0px; overflow: hidden; display: block;} .SNdZRbazen { overflow: hidden; display: BLOCK; width: 100%; background: #f3f3f3; } .AiEosctbazen ul{ } .AiEosctbazen ul li{list-style: none; float:left; display: inline-block; width:32%; height:36px; line-height: 36px; text-align: center; margin-left: 0px;} .AiEosctbazen ul li a{ text-decoration:none;font-size:20px; color:#333; font-weight:bold; display:block;} .AiEosctbazen ul li a:hover{ background:#eee;} .AiEosctbazen ul li a.cur{ z-index:9999; font-size:20px; color: #f65a00; font-weight: bold; background: #f3f3f3; border: 1px solid #eee; border-bottom: none;} .uaCOnerbazen {width:100%;text-align:center;margin:0 auto; } [removed] $(document).ready(function(){ var intervalID; var curLi; $(".AiEosctbazen li a").mouseover(function(){ curLi=$(this); intervalID=setInterval(onMouseOver,250); }); function onMouseOver(){ $(".active").removeClass("active"); $(".lista").eq($(".AiEosctbazen li a").index(curLi)).addClass("active"); $(".cur").removeClass("cur"); curLi.addClass("cur"); } $(".AiEosctbazen li a").mouseout(function(){ clearInterval(intervalID); }); $(".AiEosctbazen li a").click(function(){ clearInterval(intervalID); $(".active").removeClass("active"); $(".lista").eq($(".AiEosctbazen li a").index(curLi)).addClass("active"); $(".cur").removeClass("cur"); curLi.addClass("cur"); }); }); [removed] Akční zboží Nejprodávanější zboží Nejnovější zboží <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值