搜档网
当前位置:搜档网 › zencart常见修改方法

zencart常见修改方法

去掉产品目录旁边的产品总数方法

在管理后台里,进入”Configuration” —> “My Store” —> “Show Category Counts”选项,设置为关即可。

目录后面会有一个小箭头->

按Zen-cart的默认配置,目录后面有->(12356)这样风格的统计数字显示。如何去掉呢?

在管理后台里,进入”Configuration” —> “Layout Settings” —>

“Categories Separator between the Category Name and Count”选项,按你的需要设置即可。

在Zen-cart里如何修改”Powered by Zen Cart”的内容?

如果要定制这段文字,在 includeslanguagesschinese.php 文件中第17行

英文的话是 english.php 文件也是第17行

页眉下面有一大堆的Categories tags,怎么去掉?

后台管理 —> Configuration —> Layout Settings —> Categories-Tabs Menu ON/OFF把这个属性设为关闭即可!

怎么修改Contact Us的页面内容与风格?

如果是内容的话,在后台管理的Tools —> Define Pages Editor里进行页面内容的修改。如果是风格的话,在CSS文件里找到对应的id或是class名进行修改。如果是要修改显示内容的话,在你的模板目录下的templates/tpl_contact_us_default.php里修改,如果你重写了页面内容的话,请在common文件夹下找到相应的文件进行修改。

打开产品根目录后,会显示子目录的排列图标,这个东西怎么修改?

在模板目录下的common/tpl_columnar_display.php文件里,修改显示的内容。

浏览器的抬头上写着”Zen Cart!, The Art of …”,怎么修改?

打开文件includes/languages/english/meta_tags.php,在里面找到下面这段

// page title define(’TITLE’, ‘Zen Cart!’);

// Site Tagline define(’SITE_TAGLINE’, ‘The Art of E-commerce’);

把这些文字替换掉就可以了。当然,如果你是中文的页面,就要到相应的文件夹下面去找。

想把左、中、右三栏之间留一点空隙怎么办?

Zen-cart默认把左侧栏、中间产品栏、右侧栏排列得很紧密,想把三间之间的两个空隙弄小一些,怎么办?

只要按这个方法,你可以随意调节三者之间的空隙大小。

在后台Configuration —> Layout Setting中,仔细调节

Column Width – Left Boxes

Column Width – Right Boxes



Column Width -Left

Column Width – Right

的值,上面的这类带有Boxes的,是设定显示给我们看的box的大小,而没有Boxes的这类值,则是显示背景的大小。只要你把下面的值设得比上面的值大,就有空隙出来了。

刚安装好的Zen-cart,如何修改首页的Congratulations! you have successfully installed…

If you want to change “Congratulations! You have successfully installed your Zen Cart; E-Commerce Solution”

with your own text open the includes/languages/ENGLISH/index.php file and find the following code:

// This section

deals with the “home” page at the top level with no options/products selected
/*Replace this text with the headline you would like for your shop. For example: ‘Welcome to My SHOP!’*/
define(’HEADING_TITLE’, ‘Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.’);
} elseif ($category_depth == ‘nested’) {
// This section deals with displaying a subcategory
/*Replace this line with the headline you would like for your shop. For example: ‘Welcome to My SHOP!’/
define(’HEADING_TITLE’, ‘Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.’);
}

Replace the text starting “Congratulations” with your own text. Make sure that the single quote marks are not left out.

如何修改左、右边框的显示风格?

修改文件common/tpl_box_default_left.php或common/tpl_box_default_left.php即可。

我得到了一个空白页面,怎么调试呢?

最简单的方法,把以下代码加入到你的index.php里:

define(’STRICT_ERROR_REPORTING’, true);
?>

这样,你访问页面产生的错误消息就会输出到页面了。当然,记得把这个关掉,如果你把错误fix掉了的话,免得给用户看到。

我要单独修改Categories里的内容,怎么办?

不单是Categories,所有的sidebox的内容,都可以在/includes/templates/YourTemplate/sideboxes文件夹里进行修改。

tpl_categories文件,就是修改Categories里面的显示内容的,当然,你修改了里面的CSS标签,就修改了Categories的样式。

你可以通过common/tpl_box_default_left.php和common/tpl_box_default_right.php这两个文件来对左栏和右栏的内容进行大的调整。

相关主题