<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>英文SEO - 英文搜索引擎优化 &#187; zen-cart各模块</title>
	<atom:link href="http://www.seo-boke.com/tag/zen-cart%e5%90%84%e6%a8%a1%e5%9d%97/feed" rel="self" type="application/rss+xml" />
	<link>http://www.seo-boke.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 May 2012 03:53:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>zen-cart各模块的文件夹位置</title>
		<link>http://www.seo-boke.com/zen-cart-2</link>
		<comments>http://www.seo-boke.com/zen-cart-2#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:46:31 +0000</pubDate>
		<dc:creator>Maureen</dc:creator>
				<category><![CDATA[英文SEO]]></category>
		<category><![CDATA[zen-cart各模块]]></category>

		<guid isPermaLink="false">http://www.seo-boke.com/?p=117</guid>
		<description><![CDATA[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/tpl_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 [...]]]></description>
			<content:encoded><![CDATA[<p>Zen Cart的模板设计说简单其实也挺简单的说复杂也比较复杂，需要一定的时间来熟悉。一旦你了 解了它的结构，就会慢慢习惯了。</p>
<p>首先要阅读常见问答部分的：如何添加、制作新模板。 Zen Cart的 设计没有什么特别，与以前设计HTML页面是一样的。只是整个页面分成了好几个部分，并加入了php代码。</p>
<p>通常，页面分为页眉(header)，页脚(footer)，边框(sideboxes)。所以设计页面的时候，要记住Zen Cart是 如何组织这些页面的。</p>
<p>页面是通过CSS样式表来控制的。样式表控制表格单元的背景图案、字体的颜色和样式等等。所以，假如你需要 修改边框标题栏的字体，那么查看样式表文件。</p>
<p>Zen Cart在页面添加图像有两种方式。可以使用图像目录的相对路径，或者在模板中用php变量定义图像。如果你使用https服 务器，并且采用相对图像路径，那么https的图像目录下也要有同样的图像，否则https服务器很可能会给出警告提示。</p>
<p>Zen Cart可以设置成任意的html/flash的界面，只是比通常的html页面的设计费时。你可以从修改缺省的模板开始，先修改CSS文件和三栏格式的界面。开始先采用不同的颜色，很快就可以设计出完全不同的风格。</p>
<p>最后，在设计模板前要先计划好你网页的内容，事半功倍。</p>
<p>下面是zen cart页面各部分相对应模板文件的一个列表：</p>
<table border="0">
<tbody>
<tr bgcolor="#ccffff">
<td><strong>文件路径</strong></td>
<td><strong>注释</strong></td>
</tr>
<tr bgcolor="#ffffcc">
<td>index.php</td>
<td>主文件</td>
</tr>
<tr bgcolor="#ffff99">
<td>includes/templates/[custom template  folder]/common/html_header.php</td>
<td>页面的head部分</td>
</tr>
<tr bgcolor="#ffff99">
<td>includes/templates/[custom template  folder]/common/tpl_main_page.php</td>
<td>页面的body部分</td>
</tr>
<tr bgcolor="#ffff33">
<td>includes/templates/[custom template  folder]/common/tpl_header.php</td>
<td>所有页面的页眉</td>
</tr>
<tr bgcolor="#ffff33">
<td>(column left)</td>
<td></td>
</tr>
<tr bgcolor="#ffff33">
<td>includes/templates/[custom template  folder]/common/main_template_vars.php</td>
<td>决定页面的内容部分，缺省为 ‘tmp_index_default.php’</td>
</tr>
<tr bgcolor="#ffdfff">
<td colspan="2"><strong>首页 – 缺省</strong></td>
</tr>
<tr bgcolor="#99ff00">
<td>includes/templates/[custom template  folder/templates/tpl_index_default.php</td>
<td>首页模板文件</td>
</tr>
<tr bgcolor="#ffdfff">
<td colspan="2"><strong>首页 – 显示分类</strong></td>
</tr>
<tr bgcolor="#99ff00">
<td>includes/templates/[custom template  folder]/templates/tpl_index_categories.php</td>
<td>首页上显示分类时的模板文件</td>
</tr>
<tr bgcolor="#ccff80">
<td>includes/modules/[custom template  folder]/pages/index/category_row.php</td>
<td>选择要显示的分类</td>
</tr>
<tr bgcolor="#e4ffb7">
<td>includes/templates/[custom template  folder]/templates/tpl_index_category_row.php</td>
<td>显示分类</td>
</tr>
<tr bgcolor="#99ff00">
<td colspan="2" bgcolor="#ffdfff"><strong>首页  – 显示指定分类</strong></td>
</tr>
<tr bgcolor="#99ff00">
<td>includes/templates/[custom template  folder]/templates/tpl_index_product_list.php</td>
<td>首页上显示指定的分类时采用的模板文件</td>
</tr>
<tr bgcolor="#ccff80">
<td>includes/modules/[custom template  folder]/product_listing.php</td>
<td>将商品数据添加到数组</td>
</tr>
<tr bgcolor="#e4ffb7">
<td>includes/templates/[custom template  folder]/templates/tpl_modules_product_listing.php</td>
<td>显示商品数量和商品导航菜单</td>
</tr>
<tr bgcolor="#d7fcd1">
<td>includes/templates/[custom template  folder]/common/tpl_list_box_content.php</td>
<td>显示商品数组</td>
</tr>
<tr bgcolor="#99ff00">
<td colspan="2" bgcolor="#ffdfff"><strong>商品 信息页面</strong></td>
</tr>
<tr bgcolor="#99ff00">
<td>includes/templates/template_default/templates/tpl_product_info_display.php</td>
<td>显示单件商品信息</td>
</tr>
<tr bgcolor="#99ff00">
<td colspan="2" bgcolor="#ffdfff"><strong>购物 车页面</strong></td>
</tr>
<tr bgcolor="#99ff00">
<td>includes/templates/[custom template  folder]/templates/tpl_shopping_cart_default.php</td>
<td>购物车页面</td>
</tr>
<tr bgcolor="#ffff33">
<td>(column right)</td>
<td></td>
</tr>
<tr bgcolor="#ffff33">
<td>includes/templates/[custom template  folder]/common/tpl_footer.php</td>
<td>所有页面的页脚</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.seo-boke.com/zen-cart-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

