zencart二次开发必备
主样式表
includes\templates\classic\css\stylesheet.css
整个页面组织
D:\WEB\zen-cart\includes\templates\template_default\common\tpl_main_page.php
网页左右栏width源代码:
动态调用width: ”>,
在后台-configuration-layout里可以更改Column Width/Column Width – Left Boxes
商品分类名称Categories更改:BOX_HEADING_CATEGORIES,
“D:\WEB\zen-cart\includes\languages\english.php”(78,11): define(’BOX_HEADING_CATEGORIES’, ‘Categories’);
spooer名称更改:define(’BOX_HEADING_BANNER_BOX’,’Sponsors’)
默认模板,左spooner对应’BOX_HEADING_BANNER_BOX’ 右上spooer对’BOX_HEADING_BANNER_BOX_ALL’
右下spooer对应BOX_HEADING_BANNER_BOX2
左边栏处理:只保留includes\templates\template_default\sideboxes\tpl_categories.php,在里面增加
图片链接
右边栏的处理:
1.后台设置为保留who’s onlie(sideboxes/whos_online.php),
与之对应的 tpl_box_default_right.php,查找进行替换
2.添加左边栏目内容,对tpl_box_default_right.php更改:
中部修改:
=================
\includes\templates\template_default\templates\tpl_index_default.php
去掉顶部说明:
去掉欢迎信息:
去掉顶部导航:
\includes\templates\template_default\common\tpl_main_page.php
模板顶部修改:
================
\zen-cart\includes\templates\template_default\common\tpl_header.php
内可增加链接
/**
* prepares and displays header output
*
*/
if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == ‘true’ and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == ”)) {
$flag_disable_header = true;
}
require($template->get_template_dir(’tpl_header.php’,DIR_WS_TEMPLATE, $current_page_base,’common’). ‘/tpl_header.php’);?>
上段从
顶部搜索按钮修改:
\includes\templates\template_default\common\tpl_header.php :
自动生成导航栏:
\includes\templates\template_default\templates\tpl_modules_categories_tabs.php
将其代码掏空,重新添加导航代码:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* Module Template – categories_tabs
*
* Template stub used to display categories-tabs output*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $
*/
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
?>
= 1) { ?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
清除多余的log背景:
\zen-cart\includes\templates\template_default\common\tpl_header.php
底部导航修改:
\includes\templates\template_default\common\tpl_main_page.php
来过,学习过,哈哈,博主的文章有东西可学,收藏了。
博客很不错,是一个取经的好地方。
呵呵,贵博客文章很精彩!我山东SEO(www.jnseo.org)刚刚更新,欢迎朋友去顶顶昂
Just want to say what a great blog you got here!
I’ve been around for quite a lot of time, but finally decided to show my appreciation of your work!
Thumbs up, and keep it going!
Cheers
Christian, iwspo.net
全是代码,看着头晕呐。。。。还有老外来留言的~~呵呵
JekSoypebop jufufduy Arrigohorkert
What I find so interesting is you could never find this awnyhree else.
sQSgnw cpdcbstckbbm
Py6Wsd lbzlxtsfthpk
zencart二次开å‘必备 | 果果大å”`s Blog I was suggested this blog by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You’re wonderful! Thanks! your article about zencart二次开å‘必备 | 果果大å”`s BlogBest Regards Agata
zencart二次开å‘必备 | 果果大å”`s Blog I was suggested this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my difficulty. You are wonderful! Thanks! your article about zencart二次开å‘必备 | 果果大å”`s BlogBest Regards Cindy