<?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>浏忙大爆炸 &#187; Zen-cart</title>
	<atom:link href="http://blog.waterlin.org/articles/tag/zen-cart/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.waterlin.org</link>
	<description>源于理工科男的烂笔头情结</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:35:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>WOZ不兼容WordPress2.7以上版本的解决办法</title>
		<link>http://blog.waterlin.org/articles/how-to-fix-wordpress-27-on-zen-cart-issue.html</link>
		<comments>http://blog.waterlin.org/articles/how-to-fix-wordpress-27-on-zen-cart-issue.html#comments</comments>
		<pubDate>Tue, 21 Jul 2009 03:22:08 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/how-to-fix-wordpress-27-on-zen-cart-issue.html</guid>
		<description><![CDATA[WOZ模块给Zen-cart提供了集成WordPress作为其博客系统的机会，不过，如果你用的是WordPress2.7版本，集成完毕后访问首页(http://your.zen-cart.com/index.php?main_page=wordpress)，可能会出现类似下面的错误： Warning: Cannot modify header information &#8211; headers already sent by (output started at E:\xampp\htdocs\zen-cart-with-wordpress\includes\templates\template_default\common\html_header.php:22) in E:\xampp\htdocs\zen-cart-with-wordpress\wordpress2.7.1\wp-includes\pluggable.php on line 850 而WordPress2.5版本则不会有类似的问题。 要解决这个问题很容易，只要把WordPress网址转发功能给屏蔽掉就好了。在WordPress主题的functions.php文件里加上这么一行代码就好了： remove_filter(&#8216;template_redirect&#8217;,'redirect_canonical&#8217;); 如果你用的是WOZ，则在default主题的functions.php文件里加入这段代码即可。有关这个问题的详细解释，以及WordPress转发网址的理由，可以查看Velvet Blues的这篇文章。]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.waterlin.org/articles/把wordpress集成到zen-cart里.html" target="_blank" title="WOZ">WOZ模块</a>给Zen-cart提供了集成WordPress作为其博客系统的机会，不过，如果你用的是WordPress2.7版本，集成完毕后访问首页(http://your.zen-cart.com/index.php?main_page=wordpress)，可能会出现类似下面的错误：</p>
<blockquote><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at E:\xampp\htdocs\zen-cart-with-wordpress\includes\templates\template_default\common\html_header.php:22) in E:\xampp\htdocs\zen-cart-with-wordpress\wordpress2.7.1\wp-includes\pluggable.php on line 850</p>
</blockquote>
<p>而WordPress2.5版本则不会有类似的问题。</p>
<p>要解决这个问题很容易，只要把WordPress网址转发功能给屏蔽掉就好了。在WordPress主题的functions.php文件里加上这么一行代码就好了：</p>
<blockquote><p>remove_filter(&#8216;template_redirect&#8217;,'redirect_canonical&#8217;);</p>
</blockquote>
<p>如果你用的是<a href="http://blog.waterlin.org/articles/把wordpress集成到zen-cart里.html" target="_blank" title="WOZ">WOZ</a>，则在default主题的functions.php文件里加入这段代码即可。有关这个问题的详细解释，以及WordPress转发网址的理由，可以查看Velvet Blues的<a href="http://www.velvetblues.com/web-development-blog/turn-off-wordpress-homepage-url-redirection/" target="_blank">这篇文章</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/how-to-fix-wordpress-27-on-zen-cart-issue.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-cart里数据表名称的查找方法</title>
		<link>http://blog.waterlin.org/articles/zen-cart-table-define-file.html</link>
		<comments>http://blog.waterlin.org/articles/zen-cart-table-define-file.html#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:58:31 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/zen-cart-table-define-file.html</guid>
		<description><![CDATA[Zen-cart代码里都是用TABLE_ADDRESS_BOOK这类的define定义来代表实际的数据库表名称。这样做，是因为不同的Zen-cart安装会有不同的前缀，唯有这样才能正确识别出表名。 在对Zen-cart进行二次开发的时候，可以在/includes/database_tables.php里查找各数据库表的define定义。]]></description>
			<content:encoded><![CDATA[<p>Zen-cart代码里都是用TABLE_ADDRESS_BOOK这类的define定义来代表实际的数据库表名称。这样做，是因为不同的Zen-cart安装会有不同的前缀，唯有这样才能正确识别出表名。</p>
<p>在对Zen-cart进行二次开发的时候，可以在/includes/database_tables.php里查找各数据库表的define定义。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/zen-cart-table-define-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-cart里创建module的方法</title>
		<link>http://blog.waterlin.org/articles/zen-cart-module-produce.html</link>
		<comments>http://blog.waterlin.org/articles/zen-cart-module-produce.html#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:42:27 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/zen-cart-module-produce.html</guid>
		<description><![CDATA[虽然Zen-cart左右栏都有相关的module放在sideboxes里，但是，有的时候，需要在页面上某个地方单独显示这些box的内容。比如说，我想把Shopping Cart和Currencies的内容显示在页面的头部。这个时候，并不能直接用Zen-cart提供的module；唯有对现有的module进行相关的改造，才能自如的显示内容。 Zen-cart 1.3.8 采用的模板技术比较特殊，/includes/modules里存放的是相关的module文件，负责页面数据的生成；而模板文件则是放在各个模板目录，处理相关页面内容的生成。整个过程更像是对zen-cart的hack，而不是module的制作。 下面就以创建一个页面头部的currencies，来简单说明一下页面module的制作方法，制作完成后的效果如下图所示： 可以参考、对比 /includes/templates/template_default/sideboxes/tpl_search_header.php /includes/templates/template_default/sideboxes/tpl_search.php 和 /includes/modules/sideboxes/search_header.php /includes/modules/sideboxes/search.php 来获得灵感。 按以下三个步骤来制作这个module： 1) 在/includes/modules/sideboxes目录下，新建一个名叫currencies_header.php的文件。 如果需要，在这个文件里可以依照/includes/modules/sideboxes/search_header.php提供的方法来直接操作数据库。 在这里，我们根据/includes/modules/sideboxes/currencies.php来创建文件，主要是把currencies.php里用于sidebox显示的句子删掉： $title = '&#60;label&#62;' . BOX_HEADING_CURRENCIES . '&#60;/label&#62;'; $title_link = false; require($template-&#62;get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default); 这样，我们就不会在调用这个module的时候，调用到用于sidebox里显示的相关语句。 同样，在这个文件里，我们可以根据自己的需要，加入一个module生成数据所需要的所有元素。 2) 新建一个名叫tpl_currencies_header.php的文件到/includes/templates/YourTemplate/sideboxes，为这个module创建单独的显示风格。这里根据你需要放置的地方，对其中的CSS/XHTML代码进行修改即可。用于显示的数据，是从第一步的module里传进来的全局变量。 注意：Zen-cart 1.3.8 里，按习惯用$content来存储生成的页面显示代码。 3) 在/includes/templates/YourTemplate/common文件夹里，到指定的页面模板里，加入相关的显示生成语句。 在这个例子中，因为是要在页首显示这个currencies显示框，则要在tpl_header.php里加入这么一段话就可以调用module生成数据了： &#60;?php require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); echo $content; ?&#62; 用上面的方法，就不单单可以修改现有的module，还能根据自己的需要，创作更多的module出来。]]></description>
			<content:encoded><![CDATA[<p>虽然Zen-cart左右栏都有相关的module放在sideboxes里，但是，有的时候，需要在页面上某个地方单独显示这些box的内容。比如说，我想把Shopping Cart和Currencies的内容显示在页面的头部。这个时候，并不能直接用Zen-cart提供的module；唯有对现有的module进行相关的改造，才能自如的显示内容。</p>
<p>Zen-cart 1.3.8 采用的模板技术比较特殊，/includes/modules里存放的是相关的module文件，负责页面数据的生成；而模板文件则是放在各个模板目录，处理相关页面内容的生成。整个过程更像是对zen-cart的hack，而不是module的制作。</p>
<p>下面就以创建一个页面头部的currencies，来简单说明一下页面module的制作方法，制作完成后的效果如下图所示：</p>
<p><img src="http://blog.waterlin.org/files/2009/07/zen-cart-module-make.png" alt="zen-cart_module_make.png" height="41"></p>
<p>可以参考、对比</p>
<blockquote><p>/includes/templates/template_default/sideboxes/tpl_search_header.php <br />/includes/templates/template_default/sideboxes/tpl_search.php</p>
</blockquote>
<p>和</p>
<blockquote><p>/includes/modules/sideboxes/search_header.php <br />/includes/modules/sideboxes/search.php</p>
</blockquote>
<p>来获得灵感。</p>
<p>按以下三个步骤来制作这个module：</p>
<p>1) <br />在/includes/modules/sideboxes目录下，新建一个名叫currencies_header.php的文件。</p>
<p>如果需要，在这个文件里可以依照/includes/modules/sideboxes/search_header.php提供的方法来直接操作数据库。</p>
<p>在这里，我们根据/includes/modules/sideboxes/currencies.php来创建文件，主要是把currencies.php里用于sidebox显示的句子删掉：</p>
<blockquote><p><code>$title = '&lt;label&gt;' . BOX_HEADING_CURRENCIES . '&lt;/label&gt;'; <br />$title_link = false; <br />require($template-&gt;get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);</code></p>
</blockquote>
<p>这样，我们就不会在调用这个module的时候，调用到用于sidebox里显示的相关语句。</p>
<p>同样，在这个文件里，我们可以根据自己的需要，加入一个module生成数据所需要的所有元素。</p>
<p>2) <br />新建一个名叫tpl_currencies_header.php的文件到/includes/templates/YourTemplate/sideboxes，为这个module创建单独的显示风格。这里根据你需要放置的地方，对其中的CSS/XHTML代码进行修改即可。用于显示的数据，是从第一步的module里传进来的全局变量。</p>
<p>注意：Zen-cart 1.3.8 里，按习惯用<strong>$content</strong>来存储生成的页面显示代码。</p>
<p>3) 在/includes/templates/YourTemplate/common文件夹里，到指定的页面模板里，加入相关的显示生成语句。</p>
<p>在这个例子中，因为是要在页首显示这个currencies显示框，则要在tpl_header.php里加入这么一段话就可以调用module生成数据了：</p>
<blockquote><p><code>&lt;?php <br />require(DIR_WS_MODULES . 'sideboxes/currencies_header.php'); <br />echo $content; <br />?&gt;</code></p>
</blockquote>
<p>用上面的方法，就不单单可以修改现有的module，还能根据自己的需要，创作更多的module出来。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/zen-cart-module-produce.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-cart里SEO功能有可能会带来空白页面的访问错误</title>
		<link>http://blog.waterlin.org/articles/zen-cart-ultimate-seo-urls-fatal-error.html</link>
		<comments>http://blog.waterlin.org/articles/zen-cart-ultimate-seo-urls-fatal-error.html#comments</comments>
		<pubDate>Fri, 08 May 2009 09:10:57 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/zen-cart-ultimate-seo-urls-fatal-error.html</guid>
		<description><![CDATA[一个朋友用Zen-cart的代码搭了一个网站娱乐一下，是从Zen-cart中文站下的代码。他的网站前几天出了这个问题：访问首页，只能打开一个空白页面，啥都没有；后台管理页面能访问，没有任何问题。 打开网站的日志（你也可以打开页面的错误输出来显示这个错误），能看到提示如下的错误信息： Warning: session_start() [function.session-start]: Cannot send session cache limiter &#8211; headers already sent (output started at /home1/ecshinec/public_html/index.php:5) in /home1/ecshinec/public_html/includes/functions/sessions.php on line 108 Notice: Undefined index: seo_urls in /home1/ecshinec/public_html/includes/functions/html_output.php on line 24 Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31457280 bytes) in /home1/ecshinec/public_html/includes/classes/seo.url.php(1068) : eval()&#8217;d code on line 21846 Notice: [...]]]></description>
			<content:encoded><![CDATA[<p>一个朋友用Zen-cart的代码搭了一个网站娱乐一下，是从Zen-cart中文站下的代码。他的网站前几天出了这个问题：访问首页，只能打开一个空白页面，啥都没有；后台管理页面能访问，没有任何问题。</p>
<p>打开网站的日志（你也可以<a href="http://tutorials.zen-cart.com/index.php?article=82" target="_blank">打开页面的错误输出</a>来显示这个错误），能看到提示如下的错误信息：</p>
<blockquote><p>Warning: session_start() [function.session-start]: Cannot send session cache limiter &#8211; headers already sent (output started at /home1/ecshinec/public_html/index.php:5) in /home1/ecshinec/public_html/includes/functions/sessions.php on line 108</p>
<p>Notice: Undefined index: seo_urls in /home1/ecshinec/public_html/includes/functions/html_output.php on line 24</p>
<p>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31457280 bytes) in /home1/ecshinec/public_html/includes/classes/seo.url.php(1068) : eval()&#8217;d code on line 21846</p>
<p>Notice: Object of class queryFactoryResult could not be converted to int in Unknown on line 0 </p>
</blockquote>
<p>这个Fatel Error很有可能是<a href="http://www.zen-cart.com/index.php?main_page=product_contrib_info&amp;products_id=231" target="_blank">Ultimate SEO URLs</a>这个module出了问题。</p>
<p>解决的办法，就是在<strong>后台管理 &#8211;&gt; Configuration &#8211;&gt; SEO</strong>里，把SEO相关的属性全部都改成false。当然，更深层次的错误原因，有空的时候再进一步研究。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/zen-cart-ultimate-seo-urls-fatal-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zen-cart里修改页首、页脚导航信息的方法</title>
		<link>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e4%bf%ae%e6%94%b9%e9%a1%b5%e9%a6%96%e3%80%81%e9%a1%b5%e8%84%9a%e5%af%bc%e8%88%aa%e4%bf%a1%e6%81%af%e7%9a%84%e6%96%b9%e6%b3%95.html</link>
		<comments>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e4%bf%ae%e6%94%b9%e9%a1%b5%e9%a6%96%e3%80%81%e9%a1%b5%e8%84%9a%e5%af%bc%e8%88%aa%e4%bf%a1%e6%81%af%e7%9a%84%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 06:26:12 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e4%bf%ae%e6%94%b9%e9%a1%b5%e9%a6%96%e3%80%81%e9%a1%b5%e8%84%9a%e5%af%bc%e8%88%aa%e4%bf%a1%e6%81%af%e7%9a%84%e6%96%b9%e6%b3%95.html</guid>
		<description><![CDATA[以前一直以为要在模板文件里才能修改页首和页脚的导航信息，今天才发现其实Zen-cart的后台就有直接编辑、选择这些导航信息的功能。 选择与设置导航信息条内容： 后台管理 &#8211;&#62; Tools &#8211;&#62; EZ-pages 在这里，可以新建页面链接，修改是否在页首、页尾导航条出现等信息。你可以用如下的例子来新建： &#160;&#160;&#160; home:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: index.php?main_page=index specials:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: index.php?main_page=specialsnew products:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: index.php?main_page=products_newall products:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: index.php?main_page=products_allreviews:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: index.php?main_page=reviewscontact us:Open New Window:OffPage is SSL:OffHeader:OnSidebox:OffFooter:OnChapter:0TOC:0Internal Link URL: [...]]]></description>
			<content:encoded><![CDATA[<p>以前一直以为要在模板文件里才能修改页首和页脚的导航信息，今天才发现其实Zen-cart的后台就有直接编辑、选择这些导航信息的功能。</p>
<p><strong>选择与设置导航信息条内容：</strong><br />
<blockquote>后台管理 &#8211;&gt; Tools &#8211;&gt; EZ-pages</p></blockquote>
<p>在这里，可以新建页面链接，修改是否在页首、页尾导航条出现等信息。你可以用如下的例子来新建：<br />
<blockquote>&nbsp;&nbsp;&nbsp; home:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=index</p>
<p>specials:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=specials<br />new products:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=products_new<br />all products:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=products_all<br />reviews:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=reviews<br />contact us:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />Internal Link URL: index.php?main_page=contact_us<br />faq:<br />Open New Window:Off<br />Page is SSL:Off<br />Header:On<br />Sidebox:Off<br />Footer:On<br />Chapter:0<br />TOC:0<br />HTML Content: FQA contents.</p></blockquote>
<p><strong>当然，你要注意的是，Header和Footer字段里的Order属性一定要填上1、2、3、4、5这样的数字；否则填数字0的话，Zen-cart不会显示导航条。</strong></p>
<p>如果你按上面的例子输入了这些参数，就可以得到如下所示的导航条了：</p>
<div align="center"><img src="http://blog.waterlin.org/files/2009/03/zen-cart-menu1.jpg" /></div>
<p><strong><br />而有关页头和页脚的参数、属性设置则在后台管理 &#8211;&gt; Configuration &#8211;&gt; EZ-Pages Settings里。</strong></p>
<p>在这里，你可以设置打开或是关闭EZ-pages中的header、Footer的显示属性。</p>
<p>现在管理起页首和页脚的导航条，就方便多了，不用折腾源文件了。</p>
<p>另外，默认的页首导航条上，一般会有一些目录的tab，列举了一些目录的名称，提供了一个目录的快速进入方法。如果要去掉这些烦人的tab的话，可以把下面的属性设为关闭状态即可：<br />
<blockquote>后台管理 &#8211;&gt; Configuration &#8211;&gt; Layout Settings &#8211;&gt; Categories-Tabs Menu ON/OFF</p></blockquote>
<p>
<p class="zemanta-pixie"><img src="http://img.zemanta.com/pixy.gif?x-id=d6fbad2d-6fbc-474a-b911-329fc612cffc" class="zemanta-pixie-img" /></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=3cc31f75-849b-40e3-9a26-81a625f10bbf" /></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e4%bf%ae%e6%94%b9%e9%a1%b5%e9%a6%96%e3%80%81%e9%a1%b5%e8%84%9a%e5%af%bc%e8%88%aa%e4%bf%a1%e6%81%af%e7%9a%84%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Zen-cart里建立各个页面链接的方法</title>
		<link>http://blog.waterlin.org/articles/%e5%9c%a8zen-cart%e9%87%8c%e5%bb%ba%e7%ab%8b%e5%90%84%e4%b8%aa%e9%a1%b5%e9%9d%a2%e9%93%be%e6%8e%a5%e7%9a%84%e6%96%b9%e6%b3%95.html</link>
		<comments>http://blog.waterlin.org/articles/%e5%9c%a8zen-cart%e9%87%8c%e5%bb%ba%e7%ab%8b%e5%90%84%e4%b8%aa%e9%a1%b5%e9%9d%a2%e9%93%be%e6%8e%a5%e7%9a%84%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 23 Jul 2008 18:01:21 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/%e5%9c%a8zen-cart%e9%87%8c%e5%bb%ba%e7%ab%8b%e5%90%84%e4%b8%aa%e9%a1%b5%e9%9d%a2%e9%93%be%e6%8e%a5%e7%9a%84%e6%96%b9%e6%b3%95.html</guid>
		<description><![CDATA[如果你在Zen-cart里需要建立一些到各个页面的链接（最常用的例子就是导航条了），那你就需要读一读本文了。 在Zen-cart里，要添加这种链接很简单，打开你放置链接的模板页面，比如说，如果你想在页眉添加像这样的导航条： LogIn &#124; Register &#124; Contact US &#124; New product &#124; Home 你只需要在/includes/templates/Your_template/common/tpl_header.php文件中用如下的形式来自动生成链接。 &#60;div id=&#8221;navMain&#8221;&#62; &#60;ul&#62; &#60;li class=&#8221;title_back&#8221;&#62;&#60;a href=&#8221;&#60;?php echo zen_href_link(FILENAME_PRODUCTS_NEW, &#8221;, &#8216;SSL&#8217;); ?&#62;&#8221;&#62;New Product&#60;/a&#62;&#60;/li&#62; &#60;li class=&#8221;title_back&#8221;&#62;&#60;a href=&#8221;&#60;?php echo zen_href_link(FILENAME_CONTACT_US, &#8221;, &#8216;SSL&#8217;); ?&#62;&#8221;&#62;Contact us&#60;/a&#62;&#60;/li&#62; &#60;li class=&#8221;title_back&#8221;&#62;&#60;a href=&#8221;&#60;?php echo zen_href_link(FILENAME_ACCOUNT, &#8221;, &#8216;SSL&#8217;); ?&#62;&#8221;&#62;Register&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; 其中zen_hred_link这个函数就是专门用来生成链接地址的，后面跟着的像FILENAME_ACCOUNT和FILENAME_CONTACT_US这样的变量，则到/includes/filenames.php里去找吧。 define(&#8216;FILENAME_ACCOUNT&#8217;, &#8216;account&#8217;); define(&#8216;FILENAME_CONTACT_US&#8217;, &#8216;contact_us&#8217;); 这样，很容易就生成了你所需要导航条链接。]]></description>
			<content:encoded><![CDATA[<p>如果你在<a href="http://www.zen-cart.com" target="_blank">Zen-cart</a>里需要建立一些到各个页面的链接（最常用的例子就是导航条了），那你就需要读一读本文了。</p>
<p>在<a href="http://www.zen-cart.com" target="_blank">Zen-cart</a>里，要添加这种链接很简单，打开你放置链接的模板页面，比如说，如果你想在页眉添加像这样的导航条：</p>
<p><strong><strong>LogIn | Register | Contact US | New product | Home</strong></strong></p>
<p>你只需要在<font color="#3333ff"><strong>/includes/templates/<font color="#cc0000">Your_template</font>/common/tpl_header.php</strong></font>文件中用如下的形式来自动生成链接。</p>
<blockquote><p>&lt;div id=&#8221;navMain&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;li class=&#8221;title_back&#8221;&gt;&lt;a href=&#8221;&lt;?php echo zen_href_link(FILENAME_PRODUCTS_NEW, &#8221;, &#8216;SSL&#8217;); ?&gt;&#8221;&gt;New Product&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&#8221;title_back&#8221;&gt;&lt;a href=&#8221;&lt;?php echo zen_href_link(FILENAME_CONTACT_US, &#8221;, &#8216;SSL&#8217;); ?&gt;&#8221;&gt;Contact us&lt;/a&gt;&lt;/li&gt;<br />
&lt;li class=&#8221;title_back&#8221;&gt;&lt;a href=&#8221;&lt;?php echo zen_href_link(FILENAME_ACCOUNT, &#8221;, &#8216;SSL&#8217;); ?&gt;&#8221;&gt;Register&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>其中<font color="#3333ff"><strong>zen_hred_link</strong></font>这个函数就是专门用来生成链接地址的，后面跟着的像<strong>FILENAME_ACCOUNT</strong>和<strong>FILENAME_CONTACT_US</strong>这样的变量，则到<strong><font color="#3333ff">/includes/filenames.php</font></strong>里去找吧。</p>
<blockquote><p>define(&#8216;FILENAME_ACCOUNT&#8217;, &#8216;account&#8217;);<br />
define(&#8216;FILENAME_CONTACT_US&#8217;, &#8216;contact_us&#8217;);</p></blockquote>
<p>这样，很容易就生成了你所需要导航条链接。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/%e5%9c%a8zen-cart%e9%87%8c%e5%bb%ba%e7%ab%8b%e5%90%84%e4%b8%aa%e9%a1%b5%e9%9d%a2%e9%93%be%e6%8e%a5%e7%9a%84%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zen-cart里调节产品图片大小的方法及其算法</title>
		<link>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e8%b0%83%e8%8a%82%e4%ba%a7%e5%93%81%e5%9b%be%e7%89%87%e5%a4%a7%e5%b0%8f%e7%9a%84%e6%96%b9%e6%b3%95%e5%8f%8a%e5%85%b6%e7%ae%97%e6%b3%95.html</link>
		<comments>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e8%b0%83%e8%8a%82%e4%ba%a7%e5%93%81%e5%9b%be%e7%89%87%e5%a4%a7%e5%b0%8f%e7%9a%84%e6%96%b9%e6%b3%95%e5%8f%8a%e5%85%b6%e7%ae%97%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 23 Jul 2008 06:50:00 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e8%b0%83%e8%8a%82%e4%ba%a7%e5%93%81%e5%9b%be%e7%89%87%e5%a4%a7%e5%b0%8f%e7%9a%84%e6%96%b9%e6%b3%95%e5%8f%8a%e5%85%b6%e7%ae%97%e6%b3%95.html</guid>
		<description><![CDATA[如果要修改Zen-cart产品显示图片的大小，可以通过Admin-&#62;Configure-&#62;Image来修改显示图片的参数，而参数的变量名则表示了该变量所起的作用，很好理解。下面就简单介绍一下main页面常用的几个变量的含义： 1) 如果需要修改Monthly Specials的图片大小，则调整这两个参数即可： Small Image Width Small Image Height 2) 如果需要调整Product Info页面里的图片，则调整这两个参数即可： Product Info &#8211; Image Width Product Info &#8211; Image Height 3) 如果需要调整Product New Listing的图片大小 ，则调整这两个参数即可： Image &#8211; New Products Width Image &#8211; New Products Height 其他参数的意思很好理解，反正多试一试就知道了。 当你把Calculate Image Size选为True的时候，Zen-cart会根据它的算法来调整图片的大小 ，否则严格地按照你所规定的Width和Height来显示图片。 Zen-cart调整图片的算法： 通过这些变量设置的值，均是放大或缩小图片后显示的最大值，Zen-cart会根据你的图片实际比例来调整好显示效果的，所以，你不用担心你的图片会变形。Zen-cart按你给定的长宽值，等比例缩放要显示图片的长和宽，Zen-cart会选Width、Height最先达到预设值的比例，来决定整个图片的缩放比例。总之，zen-cart就是以不超过你的预设值为原则来缩放图片的。]]></description>
			<content:encoded><![CDATA[<p>如果要修改<a href="http://www.zen-cart.com">Zen-cart</a>产品显示图片的大小，可以通过<strong>Admin-&gt;Configure-&gt;Image</strong>来修改显示图片的参数，而参数的变量名则表示了该变量所起的作用，很好理解。下面就简单介绍一下main页面常用的几个变量的含义：</p>
<p>1) 如果需要修改Monthly Specials的图片大小，则调整这两个参数即可：</p>
<blockquote><p>Small Image Width<br />
Small Image Height</p></blockquote>
<p>2) 如果需要调整Product Info页面里的图片，则调整这两个参数即可：</p>
<blockquote><p>Product Info &#8211; Image Width<br />
Product Info &#8211; Image Height</p></blockquote>
<p>3) 如果需要调整Product New Listing的图片大小 ，则调整这两个参数即可：</p>
<blockquote><p>Image &#8211; New Products Width<br />
Image &#8211; New Products Height</p></blockquote>
<p>其他参数的意思很好理解，反正多试一试就知道了。</p>
<p>当你把Calculate Image Size选为True的时候，Zen-cart会根据它的算法来调整图片的大小 ，否则严格地按照你所规定的Width和Height来显示图片。</p>
<p><strong>Zen-cart调整图片的算法：</strong></p>
<blockquote><p>通过这些变量设置的值，均是放大或缩小图片后显示的最大值，Zen-cart会根据你的图片实际比例来调整好显示效果的，所以，你不用担心你的图片会变形。Zen-cart按你给定的长宽值，等比例缩放要显示图片的长和宽，Zen-cart会选Width、Height最先达到预设值的比例，来决定整个图片的缩放比例。总之，zen-cart就是以不超过你的预设值为原则来缩放图片的。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/zen-cart%e9%87%8c%e8%b0%83%e8%8a%82%e4%ba%a7%e5%93%81%e5%9b%be%e7%89%87%e5%a4%a7%e5%b0%8f%e7%9a%84%e6%96%b9%e6%b3%95%e5%8f%8a%e5%85%b6%e7%ae%97%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>只从Zen-cart里迁移产品数据的方法</title>
		<link>http://blog.waterlin.org/articles/%e5%8f%aa%e4%bb%8ezen-cart%e9%87%8c%e8%bf%81%e7%a7%bb%e4%ba%a7%e5%93%81%e6%95%b0%e6%8d%ae%e7%9a%84%e6%96%b9%e6%b3%95.html</link>
		<comments>http://blog.waterlin.org/articles/%e5%8f%aa%e4%bb%8ezen-cart%e9%87%8c%e8%bf%81%e7%a7%bb%e4%ba%a7%e5%93%81%e6%95%b0%e6%8d%ae%e7%9a%84%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Thu, 17 Jul 2008 05:52:30 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/%e5%8f%aa%e4%bb%8ezen-cart%e9%87%8c%e8%bf%81%e7%a7%bb%e4%ba%a7%e5%93%81%e6%95%b0%e6%8d%ae%e7%9a%84%e6%96%b9%e6%b3%95.html</guid>
		<description><![CDATA[昨天帮朋友从另一个朋友的Zen-cart数据库里导入同样的产品信息，包括相同的图片、相同的文字描述等，但是其他信息都不要了。所以肯定不能把数据库一股脑地导入过来，看来只能有选择的导入一些特定的表了。 仔细地看了一下Zen-cart的数据库，其实整个过程很简单，分两步进行就可以了。 第一步，只需要将以下几个表里的数据导入到新的数据库 categories categories_description Product_types product_types_to_category products products_description products_options_values_to_products_options products_to_categories 第二步，再把图片复制到新服务器上相同的路径下。 通过这两步，就在新的服务器上建立了一个产品信息相同的新站点。]]></description>
			<content:encoded><![CDATA[<p>昨天帮朋友从另一个朋友的<a href="http://www.zen-cart.com/">Zen-cart</a>数据库里导入同样的产品信息，包括相同的图片、相同的文字描述等，但是其他信息都不要了。所以肯定不能把数据库一股脑地导入过来，看来只能有选择的导入一些特定的表了。</p>
<p>仔细地看了一下<a href="http://www.zen-cart.com/">Zen-cart</a>的数据库，其实整个过程很简单，分两步进行就可以了。</p>
<p><strong>第一步，只需要将以下几个表里的数据导入到新的数据库</strong></p>
<ol>
<li>categories</li>
<li>categories_description</li>
<li>Product_types</li>
<li>product_types_to_category</li>
<li>products</li>
<li>products_description</li>
<li>products_options_values_to_products_options</li>
<li>products_to_categories</li>
</ol>
<p><strong>第二步，再把图片复制到新服务器上相同的路径下。</strong></p>
<p>通过这两步，就在新的服务器上建立了一个产品信息相同的新站点。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/%e5%8f%aa%e4%bb%8ezen-cart%e9%87%8c%e8%bf%81%e7%a7%bb%e4%ba%a7%e5%93%81%e6%95%b0%e6%8d%ae%e7%9a%84%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show一下我设计的Zen-cart模板</title>
		<link>http://blog.waterlin.org/articles/show%e4%b8%80%e4%b8%8b%e6%88%91%e8%ae%be%e8%ae%a1%e7%9a%84zen-cart%e6%a8%a1%e6%9d%bf.html</link>
		<comments>http://blog.waterlin.org/articles/show%e4%b8%80%e4%b8%8b%e6%88%91%e8%ae%be%e8%ae%a1%e7%9a%84zen-cart%e6%a8%a1%e6%9d%bf.html#comments</comments>
		<pubDate>Thu, 17 Jul 2008 03:14:52 +0000</pubDate>
		<dc:creator>waterlin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Zen-cart]]></category>

		<guid isPermaLink="false">http://blog.waterlin.org/articles/show%e4%b8%80%e4%b8%8b%e6%88%91%e8%ae%be%e8%ae%a1%e7%9a%84zen-cart%e6%a8%a1%e6%9d%bf.html</guid>
		<description><![CDATA[这几天抽时间帮一个朋友设计了一个Zen-cart的模板，基本上完工了，属于比较简洁硬朗的风格。]]></description>
			<content:encoded><![CDATA[<p>这几天抽时间帮一个朋友设计了一个Zen-cart的模板，基本上完工了，属于比较简洁硬朗的风格。</p>
<div align="center"><a href="http://picasaweb.google.com/WaterLin1999/VYifdC/photo?authkey=GKlqFkLDuvo#5223662048571374514"><img src="http://lh4.ggpht.com/WaterLin1999/SH4s9P_JO7I/AAAAAAAAADw/zvTvPbNxtNU/s400/312Polowear.jpg" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.waterlin.org/articles/show%e4%b8%80%e4%b8%8b%e6%88%91%e8%ae%be%e8%ae%a1%e7%9a%84zen-cart%e6%a8%a1%e6%9d%bf.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

