<?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>Topmagento.com&#124;Magento技术交流站</title>
	<atom:link href="http://topmagento.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://topmagento.com</link>
	<description>专注于magento主题、magento模板、magento扩展等技术供大家学习交流。</description>
	<lastBuildDate>Fri, 03 Feb 2012 03:59:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>关掉magento购物车页面Multi Address结账( Disable Magento’s Multi Address Checkout )</title>
		<link>http://topmagento.com/remove-disable-magento-multi-address-checkout/</link>
		<comments>http://topmagento.com/remove-disable-magento-multi-address-checkout/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 03:56:26 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[Magento 教程]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[关掉Multi Address结账]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=664</guid>
		<description><![CDATA[在magento购物结账页面 checkout/onepage 的“Proceed to Checkout”按钮下通常都有一个Checkout with Multiple Addresses 的链接，通常我们都不需要这个功能，可以有两种较简单的方法去掉这个链接： 方法一:登录magento后台，打开System =&#62; Configuration =&#62; Shipping Settings =&#62; Options,把“Allow Shipping to Multiple Addresses” 选成“NO” 方法二:打开app/design/frontend/default/yourthemes/layout/checkout.xml 编辑，搜索“checkout/multishipping_link”，注释那行的block,如： ?View Code XML1 &#60;!--&#60;block type=&#34;checkout/multishipping_link&#34; name=&#34;checkout.cart.methods.multishipping&#34; template=&#34;checkout/multishipping/link.phtml&#34;/&#62;--&#62;]]></description>
			<content:encoded><![CDATA[<p>在magento购物结账页面 checkout/onepage 的“Proceed to Checkout”按钮下通常都有一个Checkout with Multiple Addresses 的链接，通常我们都不需要这个功能，可以有两种较简单的方法去掉这个链接：<br />
方法一:登录magento后台，打开System =&gt; Configuration =&gt; Shipping Settings =&gt; Options,把“Allow Shipping to Multiple Addresses” 选成“NO”<br />
方法二:打开app/design/frontend/default/yourthemes/layout/checkout.xml 编辑，搜索“checkout/multishipping_link”，注释那行的block,如：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p664code2'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6642"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p664code2"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--&lt;block type=&quot;checkout/multishipping_link&quot; name=&quot;checkout.cart.methods.multishipping&quot; template=&quot;checkout/multishipping/link.phtml&quot;/&gt;--&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/remove-disable-magento-multi-address-checkout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get the configurable products sku instead of simple products sku in order view from admin panel</title>
		<link>http://topmagento.com/get-the-configurable-products-sku-instead-of-simple-products-sku-in-order-view-from-admin-panel/</link>
		<comments>http://topmagento.com/get-the-configurable-products-sku-instead-of-simple-products-sku-in-order-view-from-admin-panel/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 03:50:44 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[Magento 教程]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[Get the configurable products sku]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=662</guid>
		<description><![CDATA[Get the configurable products sku instead of simple products sku in order view from admin panel. 当我们创建可配置产品的时候一般都会给它增加像“颜色，大小”那样的配置选项，但我们购买配置产品下单后，magento后台订单详情里面看到的产品sku是显示对应的简单产品SKU，这样在前台不容易搜索，因为简单产品默认不在前台显示。如果想要它显示为配置产品的SKU怎么办？下面有种非常简单的方法可以解决： 打开app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php 末尾处找到下面代码把它注释掉刷新后台就可以了： ?View Code PHP1 2 3 if &#40;$this-&#62;getItem&#40;&#41;-&#62;getProductType&#40;&#41; == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE&#41; &#123; return $this-&#62;getItem&#40;&#41;-&#62;getProductOptionByCode&#40;'simple_sku'&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>Get the configurable products sku instead of simple products sku in order view from admin panel.<br />
当我们创建可配置产品的时候一般都会给它增加像“颜色，大小”那样的配置选项，但我们购买配置产品下单后，magento后台订单详情里面看到的产品sku是显示对应的简单产品SKU，这样在前台不容易搜索，因为简单产品默认不在前台显示。如果想要它显示为配置产品的SKU怎么办？下面有种非常简单的方法可以解决：<br />
打开app/code/core/Mage/Adminhtml/Block/Sales/Items/Column/Default.php 末尾处找到下面代码把它注释掉刷新后台就可以了：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p662code4'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6624"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p662code4"><pre class="php" style="font-family:monospace;">		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProductType</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> Mage_Catalog_Model_Product_Type<span style="color: #339933;">::</span><span style="color: #004000;">TYPE_CONFIGURABLE</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProductOptionByCode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'simple_sku'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/get-the-configurable-products-sku-instead-of-simple-products-sku-in-order-view-from-admin-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento后台订单详情里面不显示产品自定义选项(custom options)</title>
		<link>http://topmagento.com/no-product-custom-options-show-in-order-view/</link>
		<comments>http://topmagento.com/no-product-custom-options-show-in-order-view/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 03:45:32 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[Magento 教程]]></category>
		<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[订单不显示产品自定义选项]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=658</guid>
		<description><![CDATA[有时候给产品添加某个属性可以不用创建属性然后把属性放到对应的属性集那样操作，对于较少产品需要添加独立属性可以直接在产品里面的”Custom Options” 标签里面点击”Add New Option”按钮直接添加，哥在给产品添加好属性后，下个单测试了一下，问题就来了：Magento后台订单详情里面不显示产品自定义选项(custom options)？怎么办？下面方法帮你解决： 1.首先打开app/design/adminhtml/default/default/template/sale/item/column/name.phtml 编辑 用下面代码替换dl class=”item-options”中间的内容 ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 &#60; ?php foreach &#40;$this-&#62;getOrderOptions&#40;&#41; as $_option&#41;: ?&#62; &#60;dt&#62;&#60; ?php echo $_option&#91;'label'&#93; ?&#62;&#60;/dt&#62; &#60;dd&#62; &#60; ?php if &#40;isset&#40;$_option&#91;'custom_view'&#93;&#41; &#38;&#38; $_option&#91;'custom_view'&#93;&#41;: ?&#62; &#60; ?php echo $this-&#62;getCustomizedOptionValue&#40;$_option&#41;; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>有时候给产品添加某个属性可以不用创建属性然后把属性放到对应的属性集那样操作，对于较少产品需要添加独立属性可以直接在产品里面的”Custom Options” 标签里面点击”Add New Option”按钮直接添加，哥在给产品添加好属性后，下个单测试了一下，问题就来了：Magento后台订单详情里面不显示产品自定义选项(custom options)？怎么办？下面方法帮你解决：<br />
1.首先打开app/design/adminhtml/default/default/template/sale/item/column/name.phtml 编辑<br />
用下面代码替换dl class=”item-options”中间的内容</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p658code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6586"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p658code6"><pre class="php" style="font-family:monospace;">	   <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getOrderOptions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_option</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
			<span style="color: #339933;">&lt;</span>dt<span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_option</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'label'</span><span style="color: #009900;">&#93;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>dt<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>dd<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_option</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_view'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_option</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'custom_view'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
				<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCustomizedOptionValue</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_option</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span>
			<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">else</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
				<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'core/string'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">truncate</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_option</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'value'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">55</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_remainder</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000;">?&gt;</span>
				<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_remainder</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #000000;">?&gt;</span>
					<span style="color: #339933;">...</span> <span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$_id</span> = 'id' . uniqid()?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_remainder</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $_id ?&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>hide<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $_id ?&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>up<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>observe<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mouseover'</span><span style="color: #339933;">,</span> <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $_id ?&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>show<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $_id ?&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>up<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>observe<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mouseout'</span><span style="color: #339933;">,</span>  <span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt; ?php echo $_id ?&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>hide<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
				<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span><span style="color: #000000;">?&gt;</span>
			<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span><span style="color: #000000;">?&gt;</span>
			<span style="color: #339933;">&lt;/</span>dd<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span></pre></td></tr></table></div>

<p>2.清除缓存，刷新后台即可。<br />
<span style="color: rgb(255, 0, 0);">注意：&lt; ?php前也不能有任何內容（空格也不允許），本博客一直都有这问题，哪位高手赐教？</span></p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/no-product-custom-options-show-in-order-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修改magento货币符号和货币符号的位置</title>
		<link>http://topmagento.com/magento-change-currency-symbol-and-position/</link>
		<comments>http://topmagento.com/magento-change-currency-symbol-and-position/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 10:00:50 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[Magento 教程]]></category>
		<category><![CDATA[magento模板美工]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[修改magento货币符号]]></category>
		<category><![CDATA[修改magento货币符号位置]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=656</guid>
		<description><![CDATA[用magento建多语言店面的时候往往要添加相应的货币，有时候想修改货币符号为自己想要的格式，怎么修改呢？这里提供一个简单方法： 1.首先要在configuration General => Locale options => Locale检查你的语言环境是什么 2.如果你的locale 是默认的选项“English (United States)”,就打开lib/Zend/Locale/Data/目录下的en.xml 编辑 3.例如你要修改日元符号为”円”（默认是显示”¥”），就搜索“JPY”大约3245行找到下面代码，把”¥”修改成”円” 保存 ?View Code XML1 2 3 4 5 6 &#60;currency type=&#34;JPY&#34;&#62; &#60;displayname&#62;Japanese Yen&#60;/displayname&#62; &#60;displayname count=&#34;one&#34;&#62;Japanese yen&#60;/displayname&#62; &#60;displayname count=&#34;other&#34;&#62;Japanese yen&#60;/displayname&#62; &#60;symbol&#62;¥&#60;/symbol&#62; &#60;/currency&#62; 4.保存上传后清楚后台缓存System –> Cache Management 5.到这里刷新前台也许还没变，要删掉var下的cache缓存目录 /var/cache 6.刷新前台OK了 还有一个问题，修改后前台显示的是”円25,522.64 ” ,我想把符号放在后面怎么修改呢？方法很简单，还是编辑en.xml ,搜索”” 大约2597行找到下面代码 ?View Code XML1 2 3 4 5 &#60;currencyformatlength&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>用magento建多语言店面的时候往往要添加相应的货币，有时候想修改货币符号为自己想要的格式，怎么修改呢？这里提供一个简单方法：<br />
1.首先要在configuration General => Locale options => Locale检查你的语言环境是什么<br />
2.如果你的locale 是默认的选项“English (United States)”,就打开lib/Zend/Locale/Data/目录下的en.xml 编辑<br />
3.例如你要修改日元符号为”円”（默认是显示”¥”），就搜索“JPY”大约3245行找到下面代码，把”¥”修改成”円” 保存</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p656code9'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6569"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p656code9"><pre class="xml" style="font-family:monospace;">            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;currency</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;JPY&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;displayname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Japanese Yen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/displayname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;displayname</span> <span style="color: #000066;">count</span>=<span style="color: #ff0000;">&quot;one&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Japanese yen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/displayname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;displayname</span> <span style="color: #000066;">count</span>=<span style="color: #ff0000;">&quot;other&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Japanese yen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/displayname<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>¥<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/symbol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/currency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>4.保存上传后清楚后台缓存System –> Cache Management<br />
5.到这里刷新前台也许还没变，要删掉var下的cache缓存目录 /var/cache<br />
6.刷新前台OK了</p>
<p>还有一个问题，修改后前台显示的是”円25,522.64 ” ,我想把符号放在后面怎么修改呢？方法很简单，还是编辑en.xml ,搜索”<currencyformat>” 大约2597行找到下面代码</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p656code10'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p65610"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p656code10"><pre class="xml" style="font-family:monospace;">            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;currencyformatlength<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;currencyformat<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>¤#,##0.00;(¤#,##0.00)<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pattern<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/currencyformat<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/currencyformatlength<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>将¤#,##0.00;(¤#,##0.00)改成#,##0.00 ¤;(#,##0.00 ¤) 即可<br />
¤为货币符号位置</currencyformat></p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-change-currency-symbol-and-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决magento1.5 “Invalid method Mage_Wishlist_Model_Item::canConfigure”错误</title>
		<link>http://topmagento.com/invalid-method-mage_wishlist_model_item-canconfigure/</link>
		<comments>http://topmagento.com/invalid-method-mage_wishlist_model_item-canconfigure/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 00:00:48 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento安装设置]]></category>
		<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento模板美工]]></category>
		<category><![CDATA[Invalid method Mage_Wishlist_Model_Item]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=648</guid>
		<description><![CDATA[一次登录magento账户添加产品到wishlist里结果账户登录报错 Invalid method Mage_Wishlist_Model_Item::canConfigure(Array ( &#8230;&#8230; ) ) 这是由于magento 1.4的模板升级到到1.5模板时造成的。下面是解决方法： 1.把 app/design/frontend/base/default/layout/wishlish.xml 拷贝到 app/design/frontend/yourtemplate/default/layout/wishlish.xml 2.把 app/design/frontend/base/default/template/wishlish 拷贝到 app/design/frontend/yourtemplate/default/template/wishlish 3.登录magento管理后台清楚缓存即可。]]></description>
			<content:encoded><![CDATA[<p>一次登录magento账户添加产品到wishlist里结果账户登录报错<br />
Invalid method Mage_Wishlist_Model_Item::canConfigure(Array<br />
(<br />
&#8230;&#8230;<br />
)<br />
)<br />
这是由于magento 1.4的模板升级到到1.5模板时造成的。下面是解决方法：<br />
1.把 app/design/frontend/base/default/layout/wishlish.xml 拷贝到 app/design/frontend/yourtemplate/default/layout/wishlish.xml<br />
2.把 app/design/frontend/base/default/template/wishlish 拷贝到 app/design/frontend/yourtemplate/default/template/wishlish<br />
3.登录magento管理后台清楚缓存即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/invalid-method-mage_wishlist_model_item-canconfigure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>去掉magento产品页描述里的换行符br</title>
		<link>http://topmagento.com/remove-br-added-product-of-magento/</link>
		<comments>http://topmagento.com/remove-br-added-product-of-magento/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 06:38:42 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento模板美工]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[去掉magento产品描述换行符]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=626</guid>
		<description><![CDATA[一次在修改产品描述时，因产品描述是带有“代码式”的文字，保存后在前台显示竟然自动增加了20多个换行符br 检查了下描述里面的代码是没有问题的，于是到后台Catalog>Attributes>Manage Attributes 里面找到对应的描述属性(Description和Short Description), 他们的“Enable WYSIWYG” 选项是选择”yes” ,这下纳闷了，怎么那么奇怪,于是找到产品页代码瞧了一番，原来是代码“nl2br”在作怪，修改方法如下： 1.首先找到对应模板下面的description.phtml文件，默认模板路径是app\design\frontend\base\default\template\catalog\product\view\description.phtml 2.打开编辑，找到代码： ?View Code PHP1 2 3 &#60;div class=&#34;std&#34;&#62; &#60; ?php echo $this-&#62;helper&#40;'catalog/output'&#41;-&#62;productAttribute&#40;$this-&#62;getProduct&#40;&#41;, nl2br&#40;$_description&#41;, 'description'&#41; ?&#62; &#60;/div&#62; 3.修改成: ?View Code PHP1 2 3 &#60;div class=&#34;std&#34;&#62; &#60; ?php echo $this-&#62;helper&#40;'catalog/output'&#41;-&#62;productAttribute&#40;$this-&#62;getProduct&#40;&#41;, &#40;$_description&#41;, 'description'&#41; ?&#62; &#60;/div&#62; 4.保存上传，清楚缓存大功告成。]]></description>
			<content:encoded><![CDATA[<p>一次在修改产品描述时，因产品描述是带有“代码式”的文字，保存后在前台显示竟然自动增加了20多个换行符br 检查了下描述里面的代码是没有问题的，于是到后台Catalog>Attributes>Manage Attributes 里面找到对应的描述属性(Description和Short Description), 他们的“Enable WYSIWYG” 选项是选择”yes” ,这下纳闷了，怎么那么奇怪,于是找到产品页代码瞧了一番，原来是代码“nl2br”在作怪，修改方法如下：<br />
1.首先找到对应模板下面的description.phtml文件，默认模板路径是app\design\frontend\base\default\template\catalog\product\view\description.phtml<br />
2.打开编辑，找到代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p626code13'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p62613"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p626code13"><pre class="php" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;std&quot;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/output'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">productAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProduct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/nl2br"><span style="color: #990000;">nl2br</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>3.修改成:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p626code14'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p62614"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p626code14"><pre class="php" style="font-family:monospace;">    <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;std&quot;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/output'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">productAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProduct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>4.保存上传，清楚缓存大功告成。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/remove-br-added-product-of-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>让Magento后台可以看到订单产品图片</title>
		<link>http://topmagento.com/add-images-for-sales-order-on-magento-backend/</link>
		<comments>http://topmagento.com/add-images-for-sales-order-on-magento-backend/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 06:15:52 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento模板美工]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento后台显示订单产品图片]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=618</guid>
		<description><![CDATA[简单修改下代码可以实现Magento后台订单显示产品图片，这样可以方便查找产品。 1.打开 app\design\adminhtml\default\default\template\sales\order\view\items.phtml 进行编辑,大概45行处找到以下代码： ?View Code PHP1 &#60;th&#62;&#60;span class=&#34;nobr&#34;&#62;&#60; ?php echo $this-&#62;helper&#40;'sales'&#41;-&#62;__&#40;'Item Status'&#41; ?&#62;&#60;/span&#62;&#60;/th&#62; 在这段代码上面插入一行，写上： ?View Code PHP1 &#60;th&#62;&#60;span&#62;&#60; ?php echo $this-&#62;helper&#40;'sales'&#41;-&#62;__&#40;'Product Image'&#41; ?&#62;&#60;/span&#62;&#60;/th&#62; 2.打开app\design\adminhtml\default\default\template\sales\order\view\items\renderer\default.phtml 进行编辑,大概75行处找到以下代码: ?View Code PHP1 &#60;td class=&#34;a-center&#34;&#62;&#60; ?php echo $_item-&#62;getStatus&#40;&#41; ?&#62;&#60;/td&#62; 在这段代码上面插入一行，写上： ?View Code PHP1 2 3 4 5 6 7 &#60;td&#62; &#60; ?php $item_id = $_item-&#62;getProductId&#40;&#41;; $item_imgurl = Mage::getBaseUrl&#40;'media'&#41;.'catalog/product'.Mage::getModel&#40;'catalog/product'&#41;-&#62;load&#40;$item_id&#41;-&#62;getImage&#40;&#41;; ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>简单修改下代码可以实现Magento后台订单显示产品图片，这样可以方便查找产品。<br />
1.打开 app\design\adminhtml\default\default\template\sales\order\view\items.phtml  进行编辑,大概45行处找到以下代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p618code19'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61819"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p618code19"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nobr&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Item Status'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>在这段代码上面插入一行，写上：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p618code20'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61820"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p618code20"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>th<span style="color: #339933;">&gt;&lt;</span>span<span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Product Image'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>th<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>2.打开app\design\adminhtml\default\default\template\sales\order\view\items\renderer\default.phtml 进行编辑,大概75行处找到以下代码:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p618code21'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61821"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p618code21"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>td <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;a-center&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStatus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>在这段代码上面插入一行，写上：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p618code22'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61822"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p618code22"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span> ?php
   <span style="color: #000088;">$item_id</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProductId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #000088;">$item_imgurl</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getBaseUrl</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'media'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #339933;">.</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$item_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getImage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000000;">?&gt;</span>
  <span style="color: #339933;">&lt;</span>a target<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;_blank&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$item_imgurl</span>; ?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span>img height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;80&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;80&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$item_imgurl</span>; ?/&gt;&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p><span style="color: rgb(255, 0, 0);">注意：上面src里面的代码”< ?php echo $item_imgurl; ?>” 后面自动加了斜杠要去掉,wordpress里面我写文章保存就自动加上了，怎么也去不掉！还有就是php开头wordpress自动加了空格要去掉。不然会报错哦!</span></p>
<p>3.保存后上传,清除缓存即可在后台订单里面看到产品图片。<br />
效果如图：<br />
<a href="http://topmagento.com/wp-content/uploads/2011/10/add_images_sales_order_id.jpg"><img src="http://topmagento.com/wp-content/uploads/2011/10/add_images_sales_order_id.jpg" alt="add images for sales order on backend" title="add_images_sales_order_id" width="700" height="111" class="aligncenter size-full wp-image-619" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/add-images-for-sales-order-on-magento-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>移除magento里list排列“Position”属性选项</title>
		<link>http://topmagento.com/remove-position-from-sort-by-option-list-in-magento/</link>
		<comments>http://topmagento.com/remove-position-from-sort-by-option-list-in-magento/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 02:53:15 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[移除magento position]]></category>
		<category><![CDATA[移除排列选项position]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=614</guid>
		<description><![CDATA[1.打开编辑 app/design/frontend/default/Yourtheme/template/catalog/product/list/toolbar.phtml 2.找到类似下面代码： ?View Code PHP1 2 3 4 5 6 7 &#60; ?php echo $this-&#62;__&#40;'Sort by'&#41; ?&#62; &#60;select onchange=&#34;setLocation(this.value)&#34;&#62; &#60; ?php foreach&#40;$this-&#62;getAvailableOrders&#40;&#41; as $_key=&#62;$_order&#41;: ?&#62; &#60;option value=&#34;&#60;?php echo $this-&#62;getOrderUrl($_key, 'asc') ?&#62;&#34;&#60; ?php if&#40;$this-&#62;isOrderCurrent&#40;$_key&#41;&#41;: ?&#62; selected=&#34;selected&#34;&#60; ?php endif; ?&#62;&#62; &#60; ?php echo $_order ?&#62; &#60;/option&#62; &#60; ?php endforeach; ?&#62; &#60;/select&#62; 3.在此代码里面加入下面两行： ?View Code PHP1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>1.打开编辑 app/design/frontend/default/Yourtheme/template/catalog/product/list/toolbar.phtml<br />
2.找到类似下面代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p614code26'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61426"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p614code26"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sort by'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span> <span style="color: #339933;">&lt;</span>select onchange<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;setLocation(this.value)&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAvailableOrders</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_key</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$_order</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;getOrderUrl</span>(<span style="color: #006699; font-weight: bold;">$_key</span>, 'asc') ?&gt;&quot;</span><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isOrderCurrent</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span> selected<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_order</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>select<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>3.在此代码里面加入下面两行：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p614code27'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61427"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p614code27"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_order</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'Position'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Remove &quot;Position&quot; from the sort option list ?&gt;</span>
    <span style="color: #666666; font-style: italic;">//code</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// End for removing &quot;Position&quot; sort option ?&gt;</span></pre></td></tr></table></div>

<p>4.加完代码类似这样：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p614code28'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61428"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p614code28"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sort by'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span> <span style="color: #339933;">&lt;</span>select onchange<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;setLocation(this.value)&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAvailableOrders</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_key</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$_order</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_order</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'Position'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">// Remove &quot;Position&quot; from the sort option list ?&gt;</span>
        <span style="color: #339933;">&lt;</span>option value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;getOrderUrl</span>(<span style="color: #006699; font-weight: bold;">$_key</span>, 'asc') ?&gt;&quot;</span><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isOrderCurrent</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span> selected<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_order</span> <span style="color: #000000;">?&gt;</span>
        <span style="color: #339933;">&lt;/</span>option<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// End for removing &quot;Position&quot; sort option ?&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>select<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/remove-position-from-sort-by-option-list-in-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解决You cannot define a correlation name &#8216;color_idx&#8217; more than once错误</title>
		<link>http://topmagento.com/you-cannot-define-a-correlation-name-color_idx-more-than-once/</link>
		<comments>http://topmagento.com/you-cannot-define-a-correlation-name-color_idx-more-than-once/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 02:32:36 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[You cannot define a correlation name 'color_idx' more than once]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=612</guid>
		<description><![CDATA[曾几何时，我在magento里面给产品添加颜色属性，结果点击前台的筛选链接报错“You cannot define a correlation name &#8216;color_idx&#8217; more than once” ，下面是解决方法： 1.打开/lib/Zend/Db/select.php 2.注释select.php文件中的下列代码 ?View Code PHP1 throw new Zend_Db_Select_Exception&#40;&#34;You cannot define a correlation name '$correlationName' more than once&#34;&#41;; 3.清楚缓存问题解决。]]></description>
			<content:encoded><![CDATA[<p>曾几何时，我在magento里面给产品添加颜色属性，结果点击前台的筛选链接报错“You cannot define a correlation name &#8216;color_idx&#8217; more than once” ，下面是解决方法：<br />
1.打开/lib/Zend/Db/select.php<br />
2.注释select.php文件中的下列代码</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p612code30'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p61230"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p612code30"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Db_Select_Exception<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;You cannot define a correlation name '<span style="color: #006699; font-weight: bold;">$correlationName</span>' more than once&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>3.清楚缓存问题解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/you-cannot-define-a-correlation-name-color_idx-more-than-once/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento整合WordPress插件 FishPig&#8217;s WordPress Integration</title>
		<link>http://topmagento.com/magento-wordpress-integration/</link>
		<comments>http://topmagento.com/magento-wordpress-integration/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 09:36:13 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento安装设置]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento wordpress插件]]></category>
		<category><![CDATA[Magento整合Wordpress]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=605</guid>
		<description><![CDATA[FishPig&#8217;s WordPress Integration 插件作用是把wordpress整合到magento里面，安装完可以在magento后台登录wordpress，控制wordpress。官方下载地址是：http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration 整合步骤如下： 1.在magento目录下新建子目录blog,上传wordpress文件到该目录. 2.新建数据库magento_blog,也可以省略这一步,直接装在原数据库上,用前缀区分表. 运行http://yourmagento.com/blog 安装wordpress. 3.登录magento conect连接器，安装fishpig_wordpress_integration插件,key在上面提供的地址可以找到。 4.安装后清除缓存，重新登录magento后台，进入/WordPress/Setting/Database Integration配置相关信息。 Database 设置wordpress数据库位置,是与magento同一数据库还是单独数据库. Integration 设置整合方式 Semi-Integration Semi-Integration在magento应用程序中提供有限量的wordpress信息,且不自动显示.适合只想在magento中显示少量wordpress信息,让maegnto跟wordpress保持各自的模板主题. Full-Integration Full-Integration允许wordpress的所以前台显示由magento负责,换言之wordpress使用magento的模板主题包.适合不想为wordpress单独制作模板的用户. 如果选择Full-Integration,需要设置Blog Route,假设设置为wp,需要进入wordpress后台Settings->General设置Site address为http://yourmagento1/wp 调用代码： 显示最新文章 ?View Code XML1 2 3 4 5 6 7 &#60;reference name=&#34;left&#34;&#62; &#60;block type=&#34;wordpress/post_list_recent&#34; name=&#34;wp.recent-posts&#34; template=&#34;wordpress/post/recent.phtml&#34;&#62; &#60;action method=&#34;setTitle&#34;&#62;&#60;title&#62;Recent Posts&#60;/title&#62;&#60;/action&#62; &#60;action method=&#34;setPostCount&#34;&#62;&#60;post_count&#62;3&#60;/post_count&#62;&#60;/action&#62; &#60;/block&#62; &#60;/reference&#62; {{block type=&#34;wordpress/post_list_recent&#34; template=&#34;wordpress/post/recent.phtml&#34; title=&#34;Recent Posts&#34; post_count=&#34;3&#34;}} 显示指定目录 [...]]]></description>
			<content:encoded><![CDATA[<p>FishPig&#8217;s WordPress Integration 插件作用是把wordpress整合到magento里面，安装完可以在magento后台登录wordpress，控制wordpress。官方下载地址是：<a href="http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration">http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration</a><br />
整合步骤如下：<br />
1.在magento目录下新建子目录blog,上传wordpress文件到该目录.<span id="more-605"></span><br />
2.新建数据库magento_blog,也可以省略这一步,直接装在原数据库上,用前缀区分表. 运行http://yourmagento.com/blog 安装wordpress.<br />
3.登录magento conect连接器，安装fishpig_wordpress_integration插件,key在上面提供的地址可以找到。<br />
4.安装后清除缓存，重新登录magento后台，进入/WordPress/Setting/Database Integration配置相关信息。<br />
Database<br />
设置wordpress数据库位置,是与magento同一数据库还是单独数据库.<br />
Integration<br />
设置整合方式<br />
Semi-Integration<br />
Semi-Integration在magento应用程序中提供有限量的wordpress信息,且不自动显示.适合只想在magento中显示少量wordpress信息,让maegnto跟wordpress保持各自的模板主题.<br />
Full-Integration<br />
Full-Integration允许wordpress的所以前台显示由magento负责,换言之wordpress使用magento的模板主题包.适合不想为wordpress单独制作模板的用户.<br />
如果选择Full-Integration,需要设置Blog Route,假设设置为wp,需要进入wordpress后台Settings->General设置Site address为http://yourmagento1/wp</p>
<p>调用代码：<br />
显示最新文章</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p605code34'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60534"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p605code34"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;left&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;wordpress/post_list_recent&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;wp.recent-posts&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;wordpress/post/recent.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTitle&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Recent Posts<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setPostCount&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
{{block type=&quot;wordpress/post_list_recent&quot; template=&quot;wordpress/post/recent.phtml&quot; title=&quot;Recent Posts&quot; post_count=&quot;3&quot;}}</pre></td></tr></table></div>

<p>显示指定目录</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p605code35'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60535"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p605code35"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;left&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;wordpress/post_list_recent&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;wp.recent-posts&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;wordpress/post/recent.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTitle&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Recent Posts<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setPostCount&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setCategoryId&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;category_id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/category_id<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
{{block type=&quot;wordpress/post_list_recent&quot; template=&quot;wordpress/post/recent.phtml&quot; title=&quot;Recent Posts&quot; post_count=&quot;3&quot;
category_id=&quot;1&quot;}}</pre></td></tr></table></div>

<p>显示指定作者</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p605code36'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60536"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p605code36"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;left&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;wordpress/post_list_recent&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;wp.recent-posts&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;wordpress/post/recent.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTitle&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Recent Posts<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setPostCount&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/post_count<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setAuthorId&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;author_id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/author_id<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
{{block type=&quot;wordpress/post_list_recent&quot; template=&quot;wordpress/post/recent.phtml&quot; title=&quot;Recent Posts&quot; post_count=&quot;3&quot;
author_id=&quot;1&quot;}}</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-wordpress-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>产品页估算运费插件支持多店问题(Estimate Shipping on the Product Page)</title>
		<link>http://topmagento.com/estimate-shipping-on-the-product-page/</link>
		<comments>http://topmagento.com/estimate-shipping-on-the-product-page/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 02:33:36 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[Estimate Shipping]]></category>
		<category><![CDATA[产品页估算运费插件]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=602</guid>
		<description><![CDATA[上次发现一个插件不支持多店，很郁闷，现在解决了~哈哈开心！ 本来在magento网店中装了个产品页估算运费的插件，这个插件是免费的，官方安装地址是 http://www.magentocommerce.com/magento-connect/EcomDev/extension/3860/ecomdev_productpageshipping 开发插件作者早在去年就停止更新了，上次在多店面里面使用该插件结果报下面错误： ?View Code PHP1 Fatal error: require_once&#40;&#41; &#91;function.require&#93;: Failed opening required 'app/code/core/Mage/Catalog/controllers/ProductController.php' &#40;include_path='/home/wines2bu/public_html/app/code/local:/home/wines2bu/public_html/app/code/community:/home/wines2bu/public_html/app/code/core:/home/wines2bu/public_html/lib:.:/usr/lib/php'&#41; in /home/wines2bu/public_html/app/code/community/EcomDev/ProductPageShipping/controllers/EstimateController.php on line 59 解决此错误的方法是： 1.打开app/code/community/EcomDev/ProductPageShipping/controllers/EstimateController.php 2.找到 ?View Code PHP1 require_once 'app/code/core/Mage/Catalog/controllers/ProductController.php'; 修改成 ?View Code PHP1 require_once BP . DS . 'app/code/core/Mage/Catalog/controllers/ProductController.php'; 3.刷新缓存OK.]]></description>
			<content:encoded><![CDATA[<p>上次发现一个插件不支持多店，很郁闷，现在解决了~哈哈开心！<br />
本来在magento网店中装了个产品页估算运费的插件，这个插件是免费的，官方安装地址是<br />
<a href="http://www.magentocommerce.com/magento-connect/EcomDev/extension/3860/ecomdev_productpageshipping">http://www.magentocommerce.com/magento-connect/EcomDev/extension/3860/ecomdev_productpageshipping</a><br />
开发插件作者早在去年就停止更新了，上次在多店面里面使用该插件结果报下面错误：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p602code40'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60240"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p602code40"><pre class="php" style="font-family:monospace;">Fatal error<span style="color: #339933;">:</span> <span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#91;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #339933;">.</span><span style="color: #b1b100;">require</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Failed opening required <span style="color: #0000ff;">'app/code/core/Mage/Catalog/controllers/ProductController.php'</span> <span style="color: #009900;">&#40;</span>include_path<span style="color: #339933;">=</span><span style="color: #0000ff;">'/home/wines2bu/public_html/app/code/local:/home/wines2bu/public_html/app/code/community:/home/wines2bu/public_html/app/code/core:/home/wines2bu/public_html/lib:.:/usr/lib/php'</span><span style="color: #009900;">&#41;</span> in <span style="color: #339933;">/</span>home<span style="color: #339933;">/</span>wines2bu<span style="color: #339933;">/</span>public_html<span style="color: #339933;">/</span>app<span style="color: #339933;">/</span>code<span style="color: #339933;">/</span>community<span style="color: #339933;">/</span>EcomDev<span style="color: #339933;">/</span>ProductPageShipping<span style="color: #339933;">/</span>controllers<span style="color: #339933;">/</span>EstimateController<span style="color: #339933;">.</span>php on line <span style="color: #cc66cc;">59</span></pre></td></tr></table></div>

<p>解决此错误的方法是：<br />
1.打开app/code/community/EcomDev/ProductPageShipping/controllers/EstimateController.php<br />
2.找到</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p602code41'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60241"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p602code41"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'app/code/core/Mage/Catalog/controllers/ProductController.php'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>修改成</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p602code42'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p60242"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p602code42"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> BP <span style="color: #339933;">.</span> DS <span style="color: #339933;">.</span> <span style="color: #0000ff;">'app/code/core/Mage/Catalog/controllers/ProductController.php'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>3.刷新缓存OK.</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/estimate-shipping-on-the-product-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento My Orders里面不显示订单,提示”You Have Placed No Orders”</title>
		<link>http://topmagento.com/magento-my-orders-you-have-placed-no-orders/</link>
		<comments>http://topmagento.com/magento-my-orders-you-have-placed-no-orders/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 04:05:31 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[Magento My Orders不显示订单]]></category>
		<category><![CDATA[magento You Have Placed No Orders]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=596</guid>
		<description><![CDATA[magento店面基本都已经完工了，最近有客户问我们说他们在登录账户后，里面看不到他们的订单，起初以为是paypal接口的问题，因为问这些问题的客户大多数是通过paypal付款的，用信用卡付款的客户前台账户里面都可以看到。 于是用自己帐号测试，结果发现跳转到paypal网站进行付款的时候,订单状态为”Pending Payment”，若点击取消付款,订单状态就变成了”cancel”,若paypal IPN 即时信息通知没有填写正确,即便客户付款成功,返回的订单状态仍然是”Pending Payment”,只有填写了正确的IPN地址,订单状态才能自动切换成”Processing”。 下面问题来了,订单状态为”Processing”和”cancel” 的订单在客户账户”My orders”链接里面都可以看到，唯有订单状态为”Pending Payment” 的订单看不到，于是我猜想：是不是在magento里面默认不显示订单状态为”Pending Payment”的订单呢？ 结果找到app/code/core/Mage/Sales/etc/config.xml 该文件，打开第564行找到Pending Payment,在结束标签前加上&#60;visible_on_front /&#62;,如下： ?View Code XML1 2 3 4 5 6 7 &#60;pending_payment translate=&#34;label&#34;&#62; &#60;label&#62;Pending Payment&#60;/label&#62; &#60;statuses&#62; &#60;pending_payment default=&#34;1&#34;/&#62; &#60;/statuses&#62; &#60;visible_on_front /&#62; &#60;/pending_payment&#62; 保存后上传，在后台刷新缓存，结果再去测试一个订单，意料之中的事发生了，事实证明了我上面的猜想。呵呵&#8230;收工！]]></description>
			<content:encoded><![CDATA[<p>magento店面基本都已经完工了，最近有客户问我们说他们在登录账户后，里面看不到他们的订单，起初以为是paypal接口的问题，因为问这些问题的客户大多数是通过paypal付款的，用信用卡付款的客户前台账户里面都可以看到。<br />
于是用自己帐号测试，结果发现跳转到paypal网站进行付款的时候,订单状态为”Pending Payment”，若点击取消付款,订单状态就变成了”cancel”,若paypal IPN 即时信息通知没有填写正确,即便客户付款成功,返回的订单状态仍然是”Pending Payment”,只有填写了正确的IPN地址,订单状态才能自动切换成”Processing”。<br />
下面问题来了,订单状态为”Processing”和”cancel” 的订单在客户账户”My orders”链接里面都可以看到，唯有订单状态为”Pending Payment” 的订单看不到，于是我猜想：是不是在magento里面默认不显示订单状态为”Pending Payment”的订单呢？<br />
结果找到app/code/core/Mage/Sales/etc/config.xml  该文件，打开第564行找到Pending Payment,在结束标签前加上&lt;visible_on_front /&gt;,如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p596code44'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p59644"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p596code44"><pre class="xml" style="font-family:monospace;">                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pending_payment</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pending Payment<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pending_payment</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;visible_on_front</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pending_payment<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>保存后上传，在后台刷新缓存，结果再去测试一个订单，意料之中的事发生了，事实证明了我上面的猜想。呵呵&#8230;收工！</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-my-orders-you-have-placed-no-orders/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>修改magento 标签列表的布局</title>
		<link>http://topmagento.com/change-magento-tagged-layout-of-products-view/</link>
		<comments>http://topmagento.com/change-magento-tagged-layout-of-products-view/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 09:24:31 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[修改magento标签布局]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=593</guid>
		<description><![CDATA[magento默认标签地址是http://yourdomai.com/tag/list/ ,显示所有标签的集合，点击任意标签出现标签的搜索结果：/tag/product/list/tagId/xx/”,页面标题为“Products tagged with ‘xxxxx’ “ ，这个搜索页面在magento里默认是三栏布局，如何修改成自己想要的布局呢？下面以两栏带左侧栏为例： 1.打开tag.xml文件编辑,位置为app/design/frontend/base/default/layout/tag.xml 2.搜索“tag_product_list” ，在次块里面加入下面代码： ?View Code XML1 2 3 &#60;reference name=&#34;root&#34;&#62; &#60;action method=&#34;setTemplate&#34;&#62;&#60;template&#62;page/2columns-left.phtml&#60;/template&#62;&#60;/action&#62; &#60;/reference&#62; 类似这样： ?View Code XML1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 &#60;tag_product_list translate=&#34;label&#34;&#62; &#60;label&#62;Tagged Products List&#60;/label&#62; &#60;reference name=&#34;root&#34;&#62; &#60;action method=&#34;setTemplate&#34;&#62;&#60;template&#62;page/2columns-left.phtml&#60;/template&#62;&#60;/action&#62; &#60;/reference&#62; &#60;!-- Mage_Tag --&#62; &#60;reference name=&#34;content&#34;&#62; &#60;block type=&#34;tag/product_result&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>magento默认标签地址是http://yourdomai.com/tag/list/ ,显示所有标签的集合，点击任意标签出现标签的搜索结果：/tag/product/list/tagId/xx/”,页面标题为“Products tagged with ‘xxxxx’ “ ，这个搜索页面在magento里默认是三栏布局，如何修改成自己想要的布局呢？下面以两栏带左侧栏为例：<br />
1.打开tag.xml文件编辑,位置为app/design/frontend/base/default/layout/tag.xml<br />
2.搜索“tag_product_list” ，在次块里面加入下面代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p593code47'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p59347"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p593code47"><pre class="xml" style="font-family:monospace;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTemplate&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>page/2columns-left.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>类似这样：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p593code48'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p59348"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code" id="p593code48"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tag_product_list</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Tagged Products List<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTemplate&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>page/2columns-left.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Mage_Tag --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;content&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;tag/product_result&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;tag_products&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;catalogsearch/result.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;catalog/product_list&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;search_result_list&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;catalog/product/list.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setListOrders&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setListModes&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setListCollection&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/tag_product_list<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>3.上传保存后刷新缓存即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/change-magento-tagged-layout-of-products-view/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>让magento随即显示当前目录下的相关产品,推荐销售产品和交叉销售产品</title>
		<link>http://topmagento.com/auto-show-products-from-current-category-magento/</link>
		<comments>http://topmagento.com/auto-show-products-from-current-category-magento/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 10:47:00 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento 随即显示交叉产品]]></category>
		<category><![CDATA[magento 随即显示推荐产品]]></category>
		<category><![CDATA[magento 随即显示相关产品]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=589</guid>
		<description><![CDATA[在magento里面相关产品(Related Products)，推荐销售产品(Up-sells Products)，交叉销售产品(Cross-sells Products)都是在后台手动设置的，这篇文章教大家如何随即显示magento Up-sells 产品，修改后的结果是magento的推荐产品里面随即显示当前目录下产品，这样节省了一大笔时间。当然，修改相关产品和推荐产品的方法也是一样。 1.首先找到对应模板下的upsell.phtml文件，app/design/frontend/default/yourthemes/template/catalog/product/list/upsell.phtml 2.打开编辑，用下面代码替换掉原来的内容： ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 [...]]]></description>
			<content:encoded><![CDATA[<p>在magento里面相关产品(Related Products)，推荐销售产品(Up-sells Products)，交叉销售产品(Cross-sells Products)都是在后台手动设置的，这篇文章教大家如何随即显示magento Up-sells 产品，修改后的结果是magento的推荐产品里面随即显示当前目录下产品，这样节省了一大笔时间。当然，修改相关产品和推荐产品的方法也是一样。<br />
1.首先找到对应模板下的upsell.phtml文件，app/design/frontend/default/yourthemes/template/catalog/product/list/upsell.phtml<br />
2.打开编辑，用下面代码替换掉原来的内容：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p589code50'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p58950"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
</pre></td><td class="code" id="p589code50"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #000088;">$_related</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProduct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// get the parent id to skip</span>
<span style="color: #000088;">$_parentid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_related</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_related</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// get collection of categories this product is associated with</span>
<span style="color: #000088;">$categories</span> <span style="color: #339933;">=</span><span style="color: #000088;">$_related</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCategoryCollection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setPage</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// if the product is associated with any category</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_category</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$cur_category</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;</span>h4<span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'You may also be interested in the following product(s)'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>table cellspacing<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;0&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;upsell-product-table&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php
&nbsp;
<span style="color: #000088;">$visibility</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
Mage_Catalog_Model_Product_Visibility<span style="color: #339933;">::</span><span style="color: #004000;">VISIBILITY_BOTH</span><span style="color: #339933;">,</span>
Mage_Catalog_Model_Product_Visibility<span style="color: #339933;">::</span><span style="color: #004000;">VISIBILITY_IN_CATALOG</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$products</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_collection'</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-&gt;</span><span style="color: #004000;">addCategoryFilter</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_category</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'visibility'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$visibility</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToSelect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'small_image'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$products</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">limit</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// count the number of displayed products</span>
<span style="color: #000088;">$_i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$products</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$productModel</span> <span style="color: #009900;">&#41;</span>       <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$_related</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$productModel</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$_realtedid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_related</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// prevents displaying the same product your are already on</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_realtedid</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$_parentid</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_i</span><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
&nbsp;
<span style="color: #000000;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>td<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$_related-&gt;getProductUrl</span>() ?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this</span>-/&gt;helper('catalog/image')-&gt;init(<span style="color: #006699; font-weight: bold;">$_related</span>, 'small_image')-&gt;resize(125) ?&gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;125&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;125&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;htmlEscape</span>(<span style="color: #006699; font-weight: bold;">$_related-&gt;getName</span>()) ?&gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h5<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$_related-&gt;getProductUrl</span>() ?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">htmlEscape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_related</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>h5<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getPriceHtml</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_related</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getReviewsSummaryHtml</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_related</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>td<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php
<span style="color: #666666; font-style: italic;">// increment displayed products</span>
<span style="color: #000088;">$_i</span><span style="color: #339933;">++;</span>
<span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>tr<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>decorateTable<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'upsell-product-table'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>3.保存后上传，清除缓存刷新前台即可看到效果。<br />
ps:这里默认随即显示四个产品，如果需要显示更多，请修改limit(5) 和i&lt;4 这两个数值。<br />
之前有一篇从钥匙那里转来的”<a href="http://topmagento.com/magento-random-show-products/">magento产品详细页随机显示产品</a>“,试了下会显示对应可配置产品的简单产品，这样就会出现很多死链接。不过对没有可配置产品的朋友还是非常有效的，需要的朋友可以去看看。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/auto-show-products-from-current-category-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>magento模板升级到1.5.0.1版本后”Place Order”按钮消失了</title>
		<link>http://topmagento.com/magento-template-upgrade-1-5-0-1-disappearing-place-order-button/</link>
		<comments>http://topmagento.com/magento-template-upgrade-1-5-0-1-disappearing-place-order-button/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 20:45:09 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento模板美工]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento模板升级到1.5.0.1]]></category>
		<category><![CDATA[place order 按钮消失]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=583</guid>
		<description><![CDATA[magento模板升级其实很简单，网上有很多种方法，这里就不多说了，上次把magento1.4模板升级到1.5.0.1版本，结果在订单购买结账页面的最后一步找不到”Place Order”按钮了，因此无法完成订单，找了下gg，解决方法如下： 1.打开主题下的checkout.xml文件，具体路径 /app/design/frontend/default/yourtheme/layout/checkout.xml 2.搜索”One page checkout order review block”,大概370行处，把下列代码加入到此block中: ?View Code XML1 &#60;block type=&#34;core/template&#34; name=&#34;checkout.onepage.review.button&#34; as=&#34;button&#34; template=&#34;checkout/onepage/review/button.phtml&#34;/&#62; 类似这样： ?View Code XML1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 &#60;!-- One page checkout order review block --&#62; &#160; &#60;checkout_onepage_review&#62; &#60;!-- Mage_Checkout --&#62; &#60;remove name=&#34;right&#34;/&#62; &#60;remove [...]]]></description>
			<content:encoded><![CDATA[<p>magento模板升级其实很简单，网上有很多种方法，这里就不多说了，上次把magento1.4模板升级到1.5.0.1版本，结果在订单购买结账页面的最后一步找不到”Place Order”按钮了，因此无法完成订单，找了下gg，解决方法如下：<br />
1.打开主题下的checkout.xml文件，具体路径 /app/design/frontend/default/yourtheme/layout/checkout.xml<br />
2.搜索”One page checkout order review block”,大概370行处，把下列代码加入到此block中:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p583code53'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p58353"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p583code53"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;core/template&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;checkout.onepage.review.button&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;checkout/onepage/review/button.phtml&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></td></tr></table></div>

<p>类似这样：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p583code54'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p58354"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code" id="p583code54"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">One page checkout order review block</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;checkout_onepage_review<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Mage_Checkout --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;remove</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;right&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;remove</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;left&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkout/onepage_review_info&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;root&quot;</span> <span style="color: #000066;">output</span>=<span style="color: #ff0000;">&quot;toHtml&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;checkout/onepage/review/info.phtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addItemRender&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>default<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/cart_item_renderer<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/onepage/review/item.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addItemRender&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>grouped<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/cart_item_renderer_grouped<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/onepage/review/item.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;addItemRender&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>configurable<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/cart_item_renderer_configurable<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>checkout/onepage/review/item.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;checkout/cart_totals&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;checkout.onepage.review.info.totals&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;totals&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;checkout/onepage/review/totals.phtml&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;core/text_list&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;checkout.onepage.review.info.items.before&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;items_before&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;block</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;core/template&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;checkout.onepage.review.button&quot;</span> <span style="color: #000066;">as</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">template</span>=<span style="color: #ff0000;">&quot;checkout/onepage/review/button.phtml&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/block<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/checkout_onepage_review<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>3.保存上传清楚缓存就解决”Place Order”按钮消失的问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-template-upgrade-1-5-0-1-disappearing-place-order-button/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>magento 给cms页面增加自定义布局</title>
		<link>http://topmagento.com/magento-add-custom-cms-layout/</link>
		<comments>http://topmagento.com/magento-add-custom-cms-layout/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 22:17:49 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento cms页面]]></category>
		<category><![CDATA[增加自定义布局]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=581</guid>
		<description><![CDATA[Magento的布局文件一般在用的就4个，1column.phtml,2columns-left.phtml,2columns- right.phtml,3columns.phtml.今天magento互助群里有人问是不是可以弄4列的。那样就需要自己增加布局文件了。里面具体怎么布，就看你的需求了。我这里讲下如何增加magento布局文件 一、在目录app/design/frontend/default/yourtheme/template/page/ 下新建一个布局文件cmscolumn.phtml。 二、在app/design/frontend/default/yourtheme/template/layout/page.xml 中”Custom page layout handles”标签里加以下代码，其中有其他布局文件的写法，可以仿照。 ?View Code XML1 2 3 4 5 6 7 8 &#60;page_cms_columns translate=&#34;label&#34;&#62; &#60;label&#62;All cms-Column Layout Pages&#60;/label&#62; &#60;reference name=&#34;root&#34;&#62; &#60;action method=&#34;setTemplate&#34;&#62;&#60;template&#62;page/cmscolumn.phtml&#60;/template&#62;&#60;/action&#62; &#60;!-- Mark root page block that template is applied --&#62; &#60;action method=&#34;setIsHandle&#34;&#62;&#60;applied&#62;1&#60;/applied&#62;&#60;/action&#62; &#60;/reference&#62; &#60;/page_cms_columns&#62; 三、在app/code/core/Mage/Page/etc/config.xml中47行”layouts”标签里加入以下代码，同样有其他布局文件的写法，可参考 ?View Code XML1 2 3 4 5 &#60;cms_columns module=&#34;page&#34; translate=&#34;label&#34;&#62; &#60;label&#62;cms [...]]]></description>
			<content:encoded><![CDATA[<p>Magento的布局文件一般在用的就4个，1column.phtml,2columns-left.phtml,2columns- right.phtml,3columns.phtml.今天magento互助群里有人问是不是可以弄4列的。那样就需要自己增加布局文件了。里面具体怎么布，就看你的需求了。我这里讲下如何增加magento布局文件<br />
一、在目录app/design/frontend/default/yourtheme/template/page/ 下新建一个布局文件cmscolumn.phtml。</p>
<p>二、在app/design/frontend/default/yourtheme/template/layout/page.xml 中”Custom page layout handles”标签里加以下代码，其中有其他布局文件的写法，可以仿照。</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p581code57'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p58157"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p581code57"><pre class="xml" style="font-family:monospace;">   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;page_cms_columns</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>All cms-Column Layout Pages<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reference</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;root&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setTemplate&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>page/cmscolumn.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #808080; font-style: italic;">&lt;!-- Mark root page block that template is applied --&gt;</span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;setIsHandle&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;applied<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/applied<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/action<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reference<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/page_cms_columns<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>三、在app/code/core/Mage/Page/etc/config.xml中47行”layouts”标签里加入以下代码，同样有其他布局文件的写法，可参考</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p581code58'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p58158"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p581code58"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cms_columns</span> <span style="color: #000066;">module</span>=<span style="color: #ff0000;">&quot;page&quot;</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cms column<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>page/cms.phtml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/template<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;layout_handle<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>page_cms_columns<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/layout_handle<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cms_columns<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>四.清除缓存OK</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-add-custom-cms-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento 运费表里的各个国家代号（Magento Country codes for table rate ）</title>
		<link>http://topmagento.com/magento-country-codes-for-table-rate/</link>
		<comments>http://topmagento.com/magento-country-codes-for-table-rate/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 03:45:54 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[Magento 教程]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[Magento Country codes]]></category>
		<category><![CDATA[Magento 运费表国家代号]]></category>
		<category><![CDATA[table rate]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=574</guid>
		<description><![CDATA[在magento里面我们定义多种运费方式，必须使用magento的”table rate”运费方式,在运费表里面”Country”必须填写各个国家代号，但这里并不完全是国家名称的缩写，下面先列出magneto里面”Specific Countries” 国家的两个字母的代号： AF &#8211; Afghanistan AL &#8211; Albania DZ &#8211; Algeria AS &#8211; American Samoa AD &#8211; Andorra AO &#8211; Angola AI &#8211; Anguilla AQ &#8211; Antarctica AG &#8211; Antigua and Barbuda AR &#8211; Argentina AM &#8211; Armenia AW &#8211; Aruba AU &#8211; Australia AT &#8211; Austria AZ &#8211; Azerbaijan BS &#8211; Bahamas [...]]]></description>
			<content:encoded><![CDATA[<p>在magento里面我们定义多种运费方式，必须使用magento的”table rate”运费方式,在运费表里面”Country”必须填写各个国家代号，但这里并不完全是国家名称的缩写，下面先列出magneto里面”Specific Countries” 国家的两个字母的代号：</p>
<div style="background-color:#f5f5f5;color:#000000;padding:20px;font:13px/1.4em Monaco,Lucida Console,monospace;">AF &#8211; Afghanistan<br /> AL &#8211; Albania<br /> DZ &#8211; Algeria<br /> AS &#8211; American Samoa<br /> AD &#8211; Andorra<br /> AO &#8211; Angola<br /> AI &#8211; Anguilla<br /> AQ &#8211; Antarctica<br /> AG &#8211; Antigua and Barbuda<br /> AR &#8211; Argentina<br /> AM &#8211; Armenia<br /> AW &#8211; Aruba<br /> AU &#8211; Australia<br /> AT &#8211; Austria<br /> AZ &#8211; Azerbaijan<br /> BS &#8211; Bahamas<br /> BH &#8211; Bahrain<br /> BD &#8211; Bangladesh<br /> BB &#8211; Barbados<br /> BY &#8211; Belarus<br /> BE &#8211; Belgium<br /> BZ &#8211; Belize<br /> BJ &#8211; Benin<br /> BM &#8211; Bermuda<br /> BT &#8211; Bhutan<br /> BO &#8211; Bolivia<br /> BA &#8211; Bosnia and Herzegovina<br /> BW &#8211; Botswana<br /> BV &#8211; Bouvet Island<br /> BR &#8211; Brazil<br /> IO &#8211; British Indian Ocean Territory<br /> VG &#8211; British Virgin Islands<br /> BN &#8211; Brunei<br /> BG &#8211; Bulgaria<br /> BF &#8211; Burkina Faso<br /> BI &#8211; Burundi<br /> KH &#8211; Cambodia<br /> CM &#8211; Cameroon<br /> CA &#8211; Canada<br /> CV &#8211; Cape Verde<br /> KY &#8211; Cayman Islands<br /> CF &#8211; Central African Republic<br /> TD &#8211; Chad<br /> CL &#8211; Chile<br /> CN &#8211; China<br /> CX &#8211; Christmas Island<br /> CC &#8211; Cocos [Keeling] Islands<br /> CO &#8211; Colombia<br /> KM &#8211; Comoros<br /> CG &#8211; Congo &#8211; Brazzaville<br /> CD &#8211; Congo &#8211; Kinshasa<br /> CK &#8211; Cook Islands<br /> CR &#8211; Costa Rica<br /> HR &#8211; Croatia<br /> CU &#8211; Cuba<br /> CY &#8211; Cyprus<br /> CZ &#8211; Czech Republic<br /> CI &#8211; Côte d’Ivoire<br /> DK &#8211; Denmark<br /> DJ &#8211; Djibouti<br /> DM &#8211; Dominica<br /> DO &#8211; Dominican Republic<br /> EC &#8211; Ecuador<br /> EG &#8211; Egypt<br /> SV &#8211; El Salvador<br /> GQ &#8211; Equatorial Guinea<br /> ER &#8211; Eritrea<br /> EE &#8211; Estonia<br /> ET &#8211; Ethiopia<br /> FK &#8211; Falkland Islands<br /> FO &#8211; Faroe Islands<br /> FJ &#8211; Fiji<br /> FI &#8211; Finland<br /> FR &#8211; France<br /> GF &#8211; French Guiana<br /> PF &#8211; French Polynesia<br /> TF &#8211; French Southern Territories<br /> GA &#8211; Gabon<br /> GM &#8211; Gambia<br /> GE &#8211; Georgia<br /> DE &#8211; Germany<br /> GH &#8211; Ghana<br /> GI &#8211; Gibraltar<br /> GR &#8211; Greece<br /> GL &#8211; Greenland<br /> GD &#8211; Grenada<br /> GP &#8211; Guadeloupe<br /> GU &#8211; Guam<br /> GT &#8211; Guatemala<br /> GG &#8211; Guernsey<br /> GN &#8211; Guinea<br /> GW &#8211; Guinea-Bissau<br /> GY &#8211; Guyana<br /> HT &#8211; Haiti<br /> HM &#8211; Heard Island and McDonald Islands<br /> HN &#8211; Honduras<br /> HK &#8211; Hong Kong SAR China<br /> HU &#8211; Hungary<br /> IS &#8211; Iceland<br /> IN &#8211; India<br /> ID &#8211; Indonesia<br /> IR &#8211; Iran<br /> IQ &#8211; Iraq<br /> IE &#8211; Ireland<br /> IM &#8211; Isle of Man<br /> IL &#8211; Israel<br /> IT &#8211; Italy<br /> JM &#8211; Jamaica<br /> JP &#8211; Japan<br /> JE &#8211; Jersey<br /> JO &#8211; Jordan<br /> KZ &#8211; Kazakhstan<br /> KE &#8211; Kenya<br /> KI &#8211; Kiribati<br /> KW &#8211; Kuwait<br /> KG &#8211; Kyrgyzstan<br /> LA &#8211; Laos<br /> LV &#8211; Latvia<br /> LB &#8211; Lebanon<br /> LS &#8211; Lesotho<br /> LR &#8211; Liberia<br /> LY &#8211; Libya<br /> LI &#8211; Liechtenstein<br /> LT &#8211; Lithuania<br /> LU &#8211; Luxembourg<br /> MO &#8211; Macau SAR China<br /> MK &#8211; Macedonia<br /> MG &#8211; Madagascar<br /> MW &#8211; Malawi<br /> MY &#8211; Malaysia<br /> MV &#8211; Maldives<br /> ML &#8211; Mali<br /> MT &#8211; Malta<br /> MH &#8211; Marshall Islands<br /> MQ &#8211; Martinique<br /> MR &#8211; Mauritania<br /> MU &#8211; Mauritius<br /> YT &#8211; Mayotte<br /> MX &#8211; Mexico<br /> FM &#8211; Micronesia<br /> MD &#8211; Moldova<br /> MC &#8211; Monaco<br /> MN &#8211; Mongolia<br /> ME &#8211; Montenegro<br /> MS &#8211; Montserrat<br /> MA &#8211; Morocco<br /> MZ &#8211; Mozambique<br /> MM &#8211; Myanmar [Burma]<br /> NA &#8211; Namibia<br /> NR &#8211; Nauru<br /> NP &#8211; Nepal<br /> NL &#8211; Netherlands<br /> AN &#8211; Netherlands Antilles<br /> NC &#8211; New Caledonia<br /> NZ &#8211; New Zealand<br /> NI &#8211; Nicaragua<br /> NE &#8211; Niger<br /> NG &#8211; Nigeria<br /> NU &#8211; Niue<br /> NF &#8211; Norfolk Island<br /> KP &#8211; North Korea<br /> MP &#8211; Northern Mariana Islands<br /> NO &#8211; Norway<br /> OM &#8211; Oman<br /> PK &#8211; Pakistan<br /> PW &#8211; Palau<br /> PS &#8211; Palestinian Territories<br /> PA &#8211; Panama<br /> PG &#8211; Papua New Guinea<br /> PY &#8211; Paraguay<br /> PE &#8211; Peru<br /> PH &#8211; Philippines<br /> PN &#8211; Pitcairn Islands<br /> PL &#8211; Poland<br /> PT &#8211; Portugal<br /> PR &#8211; Puerto Rico<br /> QA &#8211; Qatar<br /> RO &#8211; Romania<br /> RU &#8211; Russia<br /> RW &#8211; Rwanda<br /> RE &#8211; Réunion<br /> BL &#8211; Saint Barthélemy<br /> SH &#8211; Saint Helena<br /> KN &#8211; Saint Kitts and Nevis<br /> LC &#8211; Saint Lucia<br /> MF &#8211; Saint Martin<br /> PM &#8211; Saint Pierre and Miquelon<br /> VC &#8211; Saint Vincent and the Grenadines<br /> WS &#8211; Samoa<br /> SM &#8211; San Marino<br /> SA &#8211; Saudi Arabia<br /> SN &#8211; Senegal<br /> RS &#8211; Serbia<br /> SC &#8211; Seychelles<br /> SL &#8211; Sierra Leone<br /> SG &#8211; Singapore<br /> SK &#8211; Slovakia<br /> SI &#8211; Slovenia<br /> SB &#8211; Solomon Islands<br /> SO &#8211; Somalia<br /> ZA &#8211; South Africa<br /> GS &#8211; South Georgia and the South Sandwich Islands<br /> KR &#8211; South Korea<br /> ES &#8211; Spain<br /> LK &#8211; Sri Lanka<br /> SD &#8211; Sudan<br /> SR &#8211; Suriname<br /> SJ &#8211; Svalbard and Jan Mayen<br /> SZ &#8211; Swaziland<br /> SE &#8211; Sweden<br /> CH &#8211; Switzerland<br /> SY &#8211; Syria<br /> ST &#8211; São Tomé and Príncipe<br /> TW &#8211; Taiwan<br /> TJ &#8211; Tajikistan<br /> TZ &#8211; Tanzania<br /> TH &#8211; Thailand<br /> TL &#8211; Timor-Leste<br /> TG &#8211; Togo<br /> TK &#8211; Tokelau<br /> TO &#8211; Tonga<br /> TT &#8211; Trinidad and Tobago<br /> TN &#8211; Tunisia<br /> TR &#8211; Turkey<br /> TM &#8211; Turkmenistan<br /> TC &#8211; Turks and Caicos Islands<br /> TV &#8211; Tuvalu<br /> UM &#8211; U.S. Minor Outlying Islands<br /> VI &#8211; U.S. Virgin Islands<br /> UG &#8211; Uganda<br /> UA &#8211; Ukraine<br /> AE &#8211; United Arab Emirates<br /> GB &#8211; United Kingdom<br /> US &#8211; United States<br /> UY &#8211; Uruguay<br /> UZ &#8211; Uzbekistan<br /> VU &#8211; Vanuatu<br /> VA &#8211; Vatican City<br /> VE &#8211; Venezuela<br /> VN &#8211; Vietnam<br /> WF &#8211; Wallis and Futuna<br /> EH &#8211; Western Sahara<br /> YE &#8211; Yemen<br /> ZM &#8211; Zambia<br /> ZW &#8211; Zimbabwe<br /> AX &#8211; Åland Islands</div>
<p>
也许2个字母不能让magento正常使用运费表，这里是上面国家2个字母代号对应的三个字母代号：</p>
<div style="background-color:#f5f5f5;color:#000000;padding:20px;font:13px/1.4em Monaco,Lucida Console,monospace;">AA &#8211; AAA<br /> AD &#8211; AND<br /> AE &#8211; ARE<br /> AF &#8211; AFG<br /> AG &#8211; ATG<br /> AI &#8211; AIA<br /> AL &#8211; ALB<br /> AM &#8211; ARM<br /> AN &#8211; ANT<br /> AO &#8211; AGO<br /> AQ &#8211; ATA<br /> AR &#8211; ARG<br /> AS &#8211; ASM<br /> AT &#8211; AUT<br /> AU &#8211; AUS<br /> AW &#8211; ABW<br /> AX &#8211; ALA<br /> AZ &#8211; AZE<br /> BA &#8211; BIH<br /> BB &#8211; BRB<br /> BD &#8211; BGD<br /> BE &#8211; BEL<br /> BF &#8211; BFA<br /> BG &#8211; BGR<br /> BH &#8211; BHR<br /> BI &#8211; BDI<br /> BJ &#8211; BEN<br /> BL &#8211; BLM<br /> BM &#8211; BMU<br /> BN &#8211; BRN<br /> BO &#8211; BOL<br /> BR &#8211; BRA<br /> BS &#8211; BHS<br /> BT &#8211; BTN<br /> BU &#8211; BUR<br /> BV &#8211; BVT<br /> BW &#8211; BWA<br /> BY &#8211; BLR<br /> BZ &#8211; BLZ<br /> CA &#8211; CAN<br /> CC &#8211; CCK<br /> CD &#8211; COD<br /> CF &#8211; CAF<br /> CG &#8211; COG<br /> CH &#8211; CHE<br /> CI &#8211; CIV<br /> CK &#8211; COK<br /> CL &#8211; CHL<br /> CM &#8211; CMR<br /> CN &#8211; CHN<br /> CO &#8211; COL<br /> CR &#8211; CRI<br /> CS &#8211; SCG<br /> CU &#8211; CUB<br /> CV &#8211; CPV<br /> CX &#8211; CXR<br /> CY &#8211; CYP<br /> CZ &#8211; CZE<br /> DD &#8211; DDR<br /> DE &#8211; DEU<br /> DJ &#8211; DJI<br /> DK &#8211; DNK<br /> DM &#8211; DMA<br /> DO &#8211; DOM<br /> DZ &#8211; DZA<br /> EC &#8211; ECU<br /> EE &#8211; EST<br /> EG &#8211; EGY<br /> EH &#8211; ESH<br /> ER &#8211; ERI<br /> ES &#8211; ESP<br /> ET &#8211; ETH<br /> FI &#8211; FIN<br /> FJ &#8211; FJI<br /> FK &#8211; FLK<br /> FM &#8211; FSM<br /> FO &#8211; FRO<br /> FR &#8211; FRA<br /> FX &#8211; FXX<br /> GA &#8211; GAB<br /> GB &#8211; GBR<br /> GD &#8211; GRD<br /> GE &#8211; GEO<br /> GF &#8211; GUF<br /> GG &#8211; GGY<br /> GH &#8211; GHA<br /> GI &#8211; GIB<br /> GL &#8211; GRL<br /> GM &#8211; GMB<br /> GN &#8211; GIN<br /> GP &#8211; GLP<br /> GQ &#8211; GNQ<br /> GR &#8211; GRC<br /> GS &#8211; SGS<br /> GT &#8211; GTM<br /> GU &#8211; GUM<br /> GW &#8211; GNB<br /> GY &#8211; GUY<br /> HK &#8211; HKG<br /> HM &#8211; HMD<br /> HN &#8211; HND<br /> HR &#8211; HRV<br /> HT &#8211; HTI<br /> HU &#8211; HUN<br /> ID &#8211; IDN<br /> IE &#8211; IRL<br /> IL &#8211; ISR<br /> IM &#8211; IMN<br /> IN &#8211; IND<br /> IO &#8211; IOT<br /> IQ &#8211; IRQ<br /> IR &#8211; IRN<br /> IS &#8211; ISL<br /> IT &#8211; ITA<br /> JE &#8211; JEY<br /> JM &#8211; JAM<br /> JO &#8211; JOR<br /> JP &#8211; JPN<br /> KE &#8211; KEN<br /> KG &#8211; KGZ<br /> KH &#8211; KHM<br /> KI &#8211; KIR<br /> KM &#8211; COM<br /> KN &#8211; KNA<br /> KP &#8211; PRK<br /> KR &#8211; KOR<br /> KW &#8211; KWT<br /> KY &#8211; CYM<br /> KZ &#8211; KAZ<br /> LA &#8211; LAO<br /> LB &#8211; LBN<br /> LC &#8211; LCA<br /> LI &#8211; LIE<br /> LK &#8211; LKA<br /> LR &#8211; LBR<br /> LS &#8211; LSO<br /> LT &#8211; LTU<br /> LU &#8211; LUX<br /> LV &#8211; LVA<br /> LY &#8211; LBY<br /> MA &#8211; MAR<br /> MC &#8211; MCO<br /> MD &#8211; MDA<br /> ME &#8211; MNE<br /> MG &#8211; MDG<br /> MF &#8211; MAF<br /> MH &#8211; MHL<br /> MK &#8211; MKD<br /> ML &#8211; MLI<br /> MM &#8211; MMR<br /> MN &#8211; MNG<br /> MO &#8211; MAC<br /> MP &#8211; MNP<br /> MQ &#8211; MTQ<br /> MR &#8211; MRT<br /> MS &#8211; MSR<br /> MT &#8211; MLT<br /> MU &#8211; MUS<br /> MV &#8211; MDV<br /> MW &#8211; MWI<br /> MX &#8211; MEX<br /> MY &#8211; MYS<br /> MZ &#8211; MOZ<br /> NA &#8211; NAM<br /> NC &#8211; NCL<br /> NE &#8211; NER<br /> NF &#8211; NFK<br /> NG &#8211; NGA<br /> NI &#8211; NIC<br /> NL &#8211; NLD<br /> NO &#8211; NOR<br /> NP &#8211; NPL<br /> NR &#8211; NRU<br /> NT &#8211; NTZ<br /> NU &#8211; NIU<br /> NZ &#8211; NZL<br /> OM &#8211; OMN<br /> PA &#8211; PAN<br /> PE &#8211; PER<br /> PF &#8211; PYF<br /> PG &#8211; PNG<br /> PH &#8211; PHL<br /> PK &#8211; PAK<br /> PL &#8211; POL<br /> PM &#8211; SPM<br /> PN &#8211; PCN<br /> PR &#8211; PRI<br /> PS &#8211; PSE<br /> PT &#8211; PRT<br /> PW &#8211; PLW<br /> PY &#8211; PRY<br /> QA &#8211; QAT<br /> QM &#8211; QMM<br /> QN &#8211; QNN<br /> QO &#8211; QOO<br /> QP &#8211; QPP<br /> QQ &#8211; QQQ<br /> QR &#8211; QRR<br /> QS &#8211; QSS<br /> QT &#8211; QTT<br /> QU &#8211; QUU<br /> QV &#8211; QVV<br /> QW &#8211; QWW<br /> QX &#8211; QXX<br /> QY &#8211; QYY<br /> QZ &#8211; QZZ<br /> RE &#8211; REU<br /> RO &#8211; ROU<br /> RS &#8211; SRB<br /> RU &#8211; RUS<br /> RW &#8211; RWA<br /> SA &#8211; SAU<br /> SB &#8211; SLB<br /> SC &#8211; SYC<br /> SD &#8211; SDN<br /> SE &#8211; SWE<br /> SG &#8211; SGP<br /> SH &#8211; SHN<br /> SI &#8211; SVN<br /> SJ &#8211; SJM<br /> SK &#8211; SVK<br /> SL &#8211; SLE<br /> SM &#8211; SMR<br /> SN &#8211; SEN<br /> SO &#8211; SOM<br /> SR &#8211; SUR<br /> ST &#8211; STP<br /> SU &#8211; SUN<br /> SV &#8211; SLV<br /> SY &#8211; SYR<br /> SZ &#8211; SWZ<br /> TC &#8211; TCA<br /> TD &#8211; TCD<br /> TF &#8211; ATF<br /> TG &#8211; TGO<br /> TH &#8211; THA<br /> TJ &#8211; TJK<br /> TK &#8211; TKL<br /> TL &#8211; TLS<br /> TM &#8211; TKM<br /> TN &#8211; TUN<br /> TO &#8211; TON<br /> TP &#8211; TMP<br /> TR &#8211; TUR<br /> TT &#8211; TTO<br /> TV &#8211; TUV<br /> TW &#8211; TWN<br /> TZ &#8211; TZA<br /> UA &#8211; UKR<br /> UG &#8211; UGA<br /> UM &#8211; UMI<br /> US &#8211; USA<br /> UY &#8211; URY<br /> UZ &#8211; UZB<br /> VA &#8211; VAT<br /> VC &#8211; VCT<br /> VE &#8211; VEN<br /> VG &#8211; VGB<br /> VI &#8211; VIR<br /> VN &#8211; VNM<br /> VU &#8211; VUT<br /> WF &#8211; WLF<br /> WS &#8211; WSM<br /> XA &#8211; XAA<br /> XB &#8211; XBB<br /> XC &#8211; XCC<br /> XD &#8211; XDD<br /> XE &#8211; XEE<br /> XF &#8211; XFF<br /> XG &#8211; XGG<br /> XH &#8211; XHH<br /> XI &#8211; XII<br /> XJ &#8211; XJJ<br /> XK &#8211; XKK<br /> XL &#8211; XLL<br /> XM &#8211; XMM<br /> XN &#8211; XNN<br /> XO &#8211; XOO<br /> XP &#8211; XPP<br /> XQ &#8211; XQQ<br /> XR &#8211; XRR<br /> XS &#8211; XSS<br /> XT &#8211; XTT<br /> XU &#8211; XUU<br /> XV &#8211; XVV<br /> XW &#8211; XWW<br /> XX &#8211; XXX<br /> XY &#8211; XYY<br /> XZ &#8211; XZZ<br /> YD &#8211; YMD<br /> YE &#8211; YEM<br /> YT &#8211; MYT<br /> YU &#8211; YUG<br /> ZA &#8211; ZAF<br /> ZM &#8211; ZMB<br /> ZR &#8211; ZAR<br /> ZW &#8211; ZWE<br /> ZZ &#8211; ZZZ</div>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-country-codes-for-table-rate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自动显示magento 产品评论 Products Reviews</title>
		<link>http://topmagento.com/magento-auto-approved-product-reviews/</link>
		<comments>http://topmagento.com/magento-auto-approved-product-reviews/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 07:40:38 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento 产品评论不需审核]]></category>
		<category><![CDATA[Products Reviews]]></category>
		<category><![CDATA[自动显示magento 产品评论]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=571</guid>
		<description><![CDATA[在magento里面，magento产品评论默认是需后台审核才能在前台显示的，下面教你把它改成自动显示。首先找到app/code/core/Mage/Review/controllers/ProductController.php 打开编辑171行,把”STATUS_PENDING”替换成”STATUS_APPROVED”： ?View Code PHP1 2 3 4 5 6 7 $review-&#62;setEntityId&#40;$review-&#62;getEntityIdByCode&#40;Mage_Review_Model_Review::ENTITY_PRODUCT_CODE&#41;&#41; -&#62;setEntityPkValue&#40;$product-&#62;getId&#40;&#41;&#41; -&#62;setStatusId&#40;Mage_Review_Model_Review::STATUS_APPROVED&#41; -&#62;setCustomerId&#40;Mage::getSingleton&#40;'customer/session'&#41;-&#62;getCustomerId&#40;&#41;&#41; -&#62;setStoreId&#40;Mage::app&#40;&#41;-&#62;getStore&#40;&#41;-&#62;getId&#40;&#41;&#41; -&#62;setStores&#40;array&#40;Mage::app&#40;&#41;-&#62;getStore&#40;&#41;-&#62;getId&#40;&#41;&#41;&#41; -&#62;save&#40;&#41;;]]></description>
			<content:encoded><![CDATA[<p>在magento里面，magento产品评论默认是需后台审核才能在前台显示的，下面教你把它改成自动显示。首先找到app/code/core/Mage/Review/controllers/ProductController.php 打开编辑171行,把”STATUS_PENDING”替换成”STATUS_APPROVED”：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p571code60'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p57160"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p571code60"><pre class="php" style="font-family:monospace;">    <span style="color: #000088;">$review</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setEntityId</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$review</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEntityIdByCode</span><span style="color: #009900;">&#40;</span>Mage_Review_Model_Review<span style="color: #339933;">::</span><span style="color: #004000;">ENTITY_PRODUCT_CODE</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setEntityPkValue</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setStatusId</span><span style="color: #009900;">&#40;</span>Mage_Review_Model_Review<span style="color: #339933;">::</span><span style="color: #004000;">STATUS_APPROVED</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setCustomerId</span><span style="color: #009900;">&#40;</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCustomerId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setStoreId</span><span style="color: #009900;">&#40;</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">setStores</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-auto-approved-product-reviews/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>给My Account,Log In,My Wishlist链接增加nofollow属性</title>
		<link>http://topmagento.com/top-link-add-nofollow/</link>
		<comments>http://topmagento.com/top-link-add-nofollow/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 10:27:37 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[顶部链接加nofollow]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=566</guid>
		<description><![CDATA[大家都知道magento里面头部的My Account,Log In,My Wishlist几个链接都是通过xml布局文件进行调用的，为了SEO分配权重必须为它们加上”nofollow”属性，但它的链接标签并不是普通的标签，所以想加nofollow属性就有点难度了。下面是我的方法： 首先找到对应模板下的customer.xml 文件，默认位置是app/design/frontend/base/default/layout/customer.xml 打开编辑，例如要给”My Account”链接加”nofollow”属性, 搜索”My Account” ，然后把”rel=”nofollow”” 放在结束标签后面就解决了。完整代码如下: ?View Code PHP1 2 3 &#60;reference name=&#34;top.links&#34;&#62; &#60;action method=&#34;addLink&#34; translate=&#34;label title&#34; module=&#34;customer&#34;&#62;&#60;label&#62;My Account&#60;/label&#62;&#60;url helper=&#34;customer/getAccountUrl&#34;/&#62;&#60;title&#62;My Account&#60;/title&#62;&#60;prepare /&#62;&#60;urlparams /&#62;&#60;position&#62;100&#60;/position&#62;&#60;null /&#62;&#60;aparams&#62;rel=&#34;nofollow&#34;&#60;/aparams&#62;&#60;/action&#62; &#60;/reference&#62;]]></description>
			<content:encoded><![CDATA[<p>大家都知道magento里面头部的My Account,Log In,My Wishlist几个链接都是通过xml布局文件进行调用的，为了SEO分配权重必须为它们加上”nofollow”属性，但它的链接标签并不是普通的<a>标签，所以想加nofollow属性就有点难度了。下面是我的方法：<br />
首先找到对应模板下的customer.xml 文件，默认位置是app/design/frontend/base/default/layout/customer.xml<br />
打开编辑，例如要给”My Account”链接加”nofollow”属性, 搜索”My Account” ，然后把”<null /><aparams>rel=”nofollow”</aparams>” 放在结束标签后面就解决了。完整代码如下:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p566code62'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p56662"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p566code62"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>reference name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top.links&quot;</span><span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>action method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addLink&quot;</span> translate<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;label title&quot;</span> module<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;customer&quot;</span><span style="color: #339933;">&gt;&lt;</span>label<span style="color: #339933;">&gt;</span>My Account<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;</span>url helper<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;customer/getAccountUrl&quot;</span><span style="color: #339933;">/&gt;&lt;</span>title<span style="color: #339933;">&gt;</span>My Account<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;&lt;</span>prepare <span style="color: #339933;">/&gt;&lt;</span>urlparams <span style="color: #339933;">/&gt;&lt;</span>position<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">&lt;/</span>position<span style="color: #339933;">&gt;&lt;</span>null <span style="color: #339933;">/&gt;&lt;</span>aparams<span style="color: #339933;">&gt;</span>rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;nofollow&quot;</span><span style="color: #339933;">&lt;/</span>aparams<span style="color: #339933;">&gt;&lt;/</span>action<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>reference<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p></a></p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/top-link-add-nofollow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>去掉顶部用户链接-My Account,Log In,My Wishlist</title>
		<link>http://topmagento.com/delete-top-link/</link>
		<comments>http://topmagento.com/delete-top-link/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 08:49:07 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[Log In]]></category>
		<category><![CDATA[My Account]]></category>
		<category><![CDATA[My Wishlist]]></category>
		<category><![CDATA[去掉顶部链接]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=556</guid>
		<description><![CDATA[默认magento模板头部都会有My Account,Log In,My Wishlist 这几个链接，下面是去掉这几个链接的方法： 1.首先找到对应模板下的customer.xml 文件，默认位置是app/design/frontend/base/default/layout/customer.xml 打开编辑，搜索”My Account” ，去掉那行代码或者用注释符号来注释掉，代码如下： ?View Code PHP1 2 3 &#60;reference name=&#34;top.links&#34;&#62; &#60;action method=&#34;addLink&#34; translate=&#34;label title&#34; module=&#34;customer&#34;&#62;&#60;label&#62;My Account&#60;/label&#62;&#60;url helper=&#34;customer/getAccountUrl&#34;/&#62;&#60;title&#62;My Account&#60;/title&#62;&#60;prepare /&#62;&#60;urlparams /&#62;&#60;position&#62;100&#60;/position&#62;&#60;/action&#62; &#60;/reference&#62; 2.去掉”Log In” 链接的方法和去掉”My Account” 链接的方法一模一样，这里不多说了。 3.去掉”My Wishlist”链接你必须先找到相同目录下的wishlist.xml 文件并打开编辑，同样找到My Wishlist 所在的那段代码去掉它或者把它注释掉，代码如下： ?View Code PHP1 2 3 4 5 &#60;reference name=&#34;top.links&#34;&#62; &#60;block type=&#34;wishlist/links&#34; name=&#34;wishlist_link&#34;&#62; &#60;action method=&#34;addWishlistLink&#34;&#62;&#60;/action&#62; &#60;/block&#62; &#60;/reference&#62;]]></description>
			<content:encoded><![CDATA[<p>默认magento模板头部都会有My Account,Log In,My Wishlist 这几个链接，下面是去掉这几个链接的方法：<br />
1.首先找到对应模板下的customer.xml 文件，默认位置是app/design/frontend/base/default/layout/customer.xml<br />
打开编辑，搜索”My Account” ，去掉那行代码或者用注释符号来注释掉，代码如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p556code65'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p55665"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p556code65"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>reference name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top.links&quot;</span><span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>action method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addLink&quot;</span> translate<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;label title&quot;</span> module<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;customer&quot;</span><span style="color: #339933;">&gt;&lt;</span>label<span style="color: #339933;">&gt;</span>My Account<span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;&lt;</span>url helper<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;customer/getAccountUrl&quot;</span><span style="color: #339933;">/&gt;&lt;</span>title<span style="color: #339933;">&gt;</span>My Account<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;&lt;</span>prepare <span style="color: #339933;">/&gt;&lt;</span>urlparams <span style="color: #339933;">/&gt;&lt;</span>position<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">100</span><span style="color: #339933;">&lt;/</span>position<span style="color: #339933;">&gt;&lt;/</span>action<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>reference<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>2.去掉”Log In” 链接的方法和去掉”My Account” 链接的方法一模一样，这里不多说了。<br />
3.去掉”My Wishlist”链接你必须先找到相同目录下的wishlist.xml 文件并打开编辑，同样找到My Wishlist 所在的那段代码去掉它或者把它注释掉，代码如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p556code66'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p55666"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p556code66"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>reference name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;top.links&quot;</span><span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>block type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wishlist/links&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wishlist_link&quot;</span><span style="color: #339933;">&gt;</span>
           <span style="color: #339933;">&lt;</span>action method<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;addWishlistLink&quot;</span><span style="color: #339933;">&gt;&lt;/</span>action<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;/</span>block<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>reference<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/delete-top-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>把magento toolbar limit=all 换成链接的形式</title>
		<link>http://topmagento.com/magento-toolbar-limit-all/</link>
		<comments>http://topmagento.com/magento-toolbar-limit-all/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 07:28:32 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento limit=all]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=553</guid>
		<description><![CDATA[直入主题,首先找到app/design/frontend/default/default/template/catalog/product/list/toolbar.phtml ?View Code PHP1 2 3 &#60; ?php $_key =&#34;all&#34;?&#62; &#60;a title=&#34;all&#34; href=&#34;&#60;?php echo $this-&#62;getLimitUrl('all') ?&#62;&#34;&#62;Show All&#60;/a&#62; &#60; ?php endif ?&#62;]]></description>
			<content:encoded><![CDATA[<p>直入主题,首先找到app/design/frontend/default/default/template/catalog/product/list/toolbar.phtml</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p553code68'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p55368"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p553code68"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php <span style="color: #000088;">$_key</span> <span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;all&quot;</span><span style="color: #000000;">?&gt;</span>
 <span style="color: #339933;">&lt;</span>a title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;all&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;getLimitUrl</span>('all') ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>Show All<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endif</span> <span style="color: #000000;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-toolbar-limit-all/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Magento显示促销产品和随机产品或调用“yes/no”属性产品</title>
		<link>http://topmagento.com/display-promotion-random-products-in-magento/</link>
		<comments>http://topmagento.com/display-promotion-random-products-in-magento/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 06:09:47 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[显示促销产品]]></category>
		<category><![CDATA[显示随即产品]]></category>
		<category><![CDATA[调用yes/no属性产品]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=546</guid>
		<description><![CDATA[1.显示促销产品 在magento里面默认的block位置是app\code\core\Mage\Catalog\Block\Product\List\Promotion.php 我们可以利用promotion 属性来调用产品： 首先在后台创建一个promotion属性： Catalog->Attributes->Manage Attributes->Create New Attribute Attribute Code: promotion Scope: Global Catalog Input Type for Store Owner: Yes/No Label: Promotion 接着把该属性放到你要显示的产品所在的属性集里面： Catalog->Attributes->Manage Attribute Sets 现在当你编辑产品的时候，在产品general标签里面会多一个Promotion 属性选项 把下面代码放到catalog.xml里面适当位置 ?View Code PHP1 &#60;block type=&#34;catalog/product_list_promotion&#34; name=&#34;product_promotion&#34; template=&#34;catalog/product/list.phtml&#34;/&#62; 如果要放在首页,直接在首页的CMS 里面加上下列代码 {{block type=&#8217;catalog/product_list_promotion&#8217; template=&#8217;catalog/product/list.phtml&#8217;}} 1.显示随即产品 基本步骤和显示促销产品一样，只是到最后一步代码稍微改动一下就可以。 把下面代码放到catalog.xml里面适当位置 ?View Code PHP1 &#60;block type=&#34;catalog/product_list_random&#34; name=&#34;product_random&#34; template=&#34;catalog/product/list.phtml&#34;/&#62; 如果要放在首页,直接在首页的CMS 里面加上下列代码 {{block [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1.显示促销产品</strong><br />
在magento里面默认的block位置是app\code\core\Mage\Catalog\Block\Product\List\Promotion.php<br />
我们可以利用promotion 属性来调用产品：<br />
首先在后台创建一个promotion属性：<br />
Catalog->Attributes->Manage Attributes->Create New Attribute<br />
Attribute Code: promotion<br />
Scope: Global<br />
Catalog Input Type for Store Owner: Yes/No<br />
<a href="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-1.jpg"><img class="aligncenter size-full wp-image-547" title="promotion-and-random-1" src="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-1.jpg" alt="" width="471" height="399" /></a><br />
Label: Promotion</p>
<p>接着把该属性放到你要显示的产品所在的属性集里面：<br />
Catalog->Attributes->Manage Attribute Sets<br />
<a href="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-2.jpg"><img class="aligncenter size-full wp-image-548" title="promotion-and-random-2" src="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-2.jpg" alt="" width="471" height="399" /></a></p>
<p>现在当你编辑产品的时候，在产品general标签里面会多一个Promotion 属性选项<br />
<a href="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-3.jpg"><img class="aligncenter size-full wp-image-549" title="promotion-and-random-3" src="http://topmagento.com/wp-content/uploads/2011/03/promotion-and-random-3.jpg" alt="" width="471" height="399" /></a></p>
<p>把下面代码放到catalog.xml里面适当位置</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p546code72'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p54672"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p546code72"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>block type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;catalog/product_list_promotion&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;product_promotion&quot;</span> template<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;catalog/product/list.phtml&quot;</span><span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>

<p>如果要放在首页,直接在首页的CMS 里面加上下列代码<br />
{{block type=&#8217;catalog/product_list_promotion&#8217; template=&#8217;catalog/product/list.phtml&#8217;}}</p>
<p><strong>1.显示随即产品</strong><br />
基本步骤和显示促销产品一样，只是到最后一步代码稍微改动一下就可以。</p>
<p>把下面代码放到catalog.xml里面适当位置</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p546code73'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p54673"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p546code73"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>block type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;catalog/product_list_random&quot;</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;product_random&quot;</span> template<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;catalog/product/list.phtml&quot;</span><span style="color: #339933;">/&gt;</span></pre></td></tr></table></div>

<p>如果要放在首页,直接在首页的CMS 里面加上下列代码<br />
{{block type=&#8217;catalog/product_list_random&#8217; template=&#8217;catalog/product/list.phtml&#8217;}}</p>
<p>总结：此文章是利用添加“yes/no”属性进行前台调用产品，如果想在首页、产品目录页、产品页等任何页面进行调用，请自行修改最后一步里的调用代码。<br />
例如在产品页里面不用list.phtml模板调用：<br />
参考代码如下：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p546code74'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p54674"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code" id="p546code74"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #000088;">$_productCollection1</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProductsByFilterAtt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ramdon&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_productCollection1</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_product1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000;">?&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;p1&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$_product1-&gt;getProductUrl</span>() ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;htmlEscape</span>(<span style="color: #006699; font-weight: bold;">$_product1-&gt;getName</span>()) ?&gt;&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this</span>-/&gt;helper('catalog/image')-&gt;init(<span style="color: #006699; font-weight: bold;">$_product1</span>, 'small_image')-&gt;resize(150,120) ?&gt;&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;htmlEscape</span>(<span style="color: #006699; font-weight: bold;">$_product1-&gt;getName</span>()) ?&gt;&quot;</span><span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$_product1-&gt;getProductUrl</span>() ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;htmlEscape</span>(<span style="color: #006699; font-weight: bold;">$_product1-&gt;getName</span>()) ?&gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_product1</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000;">?&gt;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endforeach</span> <span style="color: #000000;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/display-promotion-random-products-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>magento产品页随机显示产品</title>
		<link>http://topmagento.com/magento-random-show-products/</link>
		<comments>http://topmagento.com/magento-random-show-products/#comments</comments>
		<pubDate>Thu, 10 Mar 2011 05:42:30 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento 随即显示产品]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=541</guid>
		<description><![CDATA[magento有cross sell和up sell还有相关产品，但是都是需要手动设置的。对于我这样的懒人，懒得设置，并且我的产品相关性没有这么强。所以在产品详细页随机显示一下产品同分类下 的其它产品就行了。我google了一把，找到了些代码，做了简单的修改，在magento1.4.1.0中运行没有什么问题。贴出来和大家共享下，还是 那句话，css自己改改就可以用了。 如下代码可以放在产品详细页的任何位置，如view.phtml或者media.phtml中。改一改就可以改成随机显示某一个分类下的产品，显示的数量，图片的大小在本代码中都是很容易改的。 ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 &#60;!--for [...]]]></description>
			<content:encoded><![CDATA[<p>magento有cross sell和up  sell还有相关产品，但是都是需要手动设置的。对于我这样的懒人，懒得设置，并且我的产品相关性没有这么强。所以在产品详细页随机显示一下产品同分类下 的其它产品就行了。我google了一把，找到了些代码，做了简单的修改，在magento1.4.1.0中运行没有什么问题。贴出来和大家共享下，还是 那句话，css自己改改就可以用了。</p>
<p>如下代码可以放在产品详细页的任何位置，如view.phtml或者media.phtml中。改一改就可以改成随机显示某一个分类下的产品，显示的数量，图片的大小在本代码中都是很容易改的。</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p541code76'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p54176"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</pre></td><td class="code" id="p541code76"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span><span style="color: #b1b100;">for</span> show other product<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span> ?php <span style="color: #000088;">$categories</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCategoryIds</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;</span> ?php
        <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$categories</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$cat_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cat_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProductCollection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
    <span style="color: #000000;">?&gt;</span>
    <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box-others-also-like&quot;</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span> ?php
        <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/sizeof"><span style="color: #990000;">sizeof</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
           <span style="color: #000088;">$ourneed</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array_rand"><span style="color: #990000;">array_rand</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ourneed</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$cc</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
             <span style="color: #000088;">$thisproduct</span><span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$cc</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
             <span style="color: #000000;">?&gt;</span>
             <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getProductUrl</span>(); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getName</span>(); ?&gt;&quot;</span> <span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this</span>-/&gt;helper('catalog/image')-&gt;init(<span style="color: #006699; font-weight: bold;">$thisproduct</span>, 'small_image')-&gt;resize(200) ?&gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;200&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;200&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getName</span>(); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span> ?php <span style="color: #009900;">&#125;</span> <span style="color: #000000;">?&gt;</span>
        <span style="color: #339933;">&lt;</span> ?php
        <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span>
        <span style="color: #009900;">&#123;</span>
           <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$cc</span><span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
             <span style="color: #000088;">$thisproduct</span><span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
             <span style="color: #000000;">?&gt;</span>
&nbsp;
                <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
                <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getProductUrl</span>(); ?&gt;&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getName</span>(); ?&gt;&quot;</span> <span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this</span>-/&gt;helper('catalog/image')-&gt;init(<span style="color: #006699; font-weight: bold;">$thisproduct</span>, 'small_image')-&gt;resize(200) ?&gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;200&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;200&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo <span style="color: #006699; font-weight: bold;">$thisproduct-&gt;getName</span>(); ?&gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
                <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span> ?php
            <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000;">?&gt;</span>
        <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;!--</span><span style="color: #b1b100;">for</span> show other product<span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<p>代码也没有好好整理，我懒。想弄的好看点自己格式化下代码，下了个格式化代码的工具，php可以格式化，但是咱magento的php是包含html的，汗，没法用。谁有好的格式化咱magento的phtml代码的工具介绍给我。谢谢</p>
<p>转载表明出处：hellokeykey.com</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-random-show-products/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在magento 里禁用使用guest结账</title>
		<link>http://topmagento.com/magento-disable-guest-checkout/</link>
		<comments>http://topmagento.com/magento-disable-guest-checkout/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 05:49:53 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento新手问题]]></category>
		<category><![CDATA[disable guest checkout]]></category>
		<category><![CDATA[禁用guest结账]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=534</guid>
		<description><![CDATA[开始是通过修改app/design/frontend/motoparts/default/yourtheme/checkout/onepage/login.phtml 文件实现的，后来发现在magento后台就有禁用guest结账的按钮，太方便了！在后台 =&#62; 配置 菜单下面，点击左侧的 Checkout 标签，右边把”Allow Guest Checkout” 选项选成”NO”就可以了。如图：]]></description>
			<content:encoded><![CDATA[<p>开始是通过修改app/design/frontend/motoparts/default/yourtheme/checkout/onepage/login.phtml 文件实现的，后来发现在magento后台就有禁用guest结账的按钮，太方便了！在后台 =&gt; 配置 菜单下面，点击左侧的 Checkout 标签，右边把”Allow Guest Checkout” 选项选成”NO”就可以了。如图：</p>
<p style="text-align: center;"><a href="http://topmagento.com/wp-content/uploads/2011/03/allow_guest_checkout1.jpg"><img class="aligncenter size-full wp-image-539" title="allow_guest_checkout" src="http://topmagento.com/wp-content/uploads/2011/03/allow_guest_checkout1.jpg" alt="" width="610" height="130" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/magento-disable-guest-checkout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何增加一个自定义的magento 订单状态（order status）</title>
		<link>http://topmagento.com/add-new-magento-order-status/</link>
		<comments>http://topmagento.com/add-new-magento-order-status/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 02:42:50 +0000</pubDate>
		<dc:creator>kivin</dc:creator>
				<category><![CDATA[magento疑难解答]]></category>
		<category><![CDATA[magento order status]]></category>
		<category><![CDATA[magento 订单状态]]></category>
		<category><![CDATA[增加]]></category>
		<category><![CDATA[自定义]]></category>

		<guid isPermaLink="false">http://topmagento.com/?p=530</guid>
		<description><![CDATA[magento 后台订单状态（order status）只有Pending、Processing、On Hold、Closed、Canceled、Pending Payment 等等，如何增加一个自定义的magento 订单状态呢？下面以增加一个”On Shipping” 为例： 1.首先你需打开app/code/core/Mage/Sales/etc/config.xml 文件找到大概第545行，在之间插入一行自定义状态代码： ?View Code XML1 2 3 4 5 6 7 8 9 10 11 &#60;statuses&#62; &#60;pending translate=&#34;label&#34;&#62;&#60;label&#62;Pending&#60;/label&#62;&#60;/pending&#62; &#60;pending_payment translate=&#34;label&#34;&#62;&#60;label&#62;Pending Payment&#60;/label&#62;&#60;/pending_payment&#62; &#60;processing translate=&#34;label&#34;&#62;&#60;label&#62;Processing&#60;/label&#62;&#60;/processing&#62; &#60;shipped translate=&#34;label&#34;&#62;&#60;label&#62;On Shipping&#60;/label&#62;&#60;/shipped&#62;&#60;!-- 此处自定义On Shipping状态--&#62; &#60;holded translate=&#34;label&#34;&#62;&#60;label&#62;On Hold&#60;/label&#62;&#60;/holded&#62; &#60;complete translate=&#34;label&#34;&#62;&#60;label&#62;Complete&#60;/label&#62;&#60;/complete&#62; &#60;closed translate=&#34;label&#34;&#62;&#60;label&#62;Closed&#60;/label&#62;&#60;/closed&#62; &#60;canceled translate=&#34;label&#34;&#62;&#60;label&#62;Canceled&#60;/label&#62;&#60;/canceled&#62; &#60;fraud translate=&#34;label&#34;&#62;&#60;label&#62;Suspected Fraud&#60;/label&#62;&#60;/fraud&#62; &#60;/statuses&#62; 2.接着在第570行处，在processing标签后插入刚才自定义shipped标签： ?View Code XML1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>magento 后台订单状态（order status）只有Pending、Processing、On Hold、Closed、Canceled、Pending Payment 等等，如何增加一个自定义的magento 订单状态呢？下面以增加一个”On Shipping” 为例：<br />
1.首先你需打开app/code/core/Mage/Sales/etc/config.xml 文件找到大概第545行，在<statuses></statuses>之间插入一行自定义状态代码：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p530code79'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p53079"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p530code79"><pre class="xml" style="font-family:monospace;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pending</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pending<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/pending<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pending_payment</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Pending Payment<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/pending_payment<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;processing</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Processing<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/processing<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;shipped</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>On Shipping<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/shipped<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><span style="color: #808080; font-style: italic;">&lt;!-- 此处自定义On Shipping状态--&gt;</span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;holded</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>On Hold<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/holded<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;complete</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Complete<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/complete<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;closed</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Closed<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/closed<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;canceled</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Canceled<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/canceled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fraud</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Suspected Fraud<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/fraud<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>2.接着在第570行处，在processing标签后插入刚才自定义shipped标签：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://topmagento.com" target="_blank" title="GO To?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p530code80'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p53080"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p530code80"><pre class="xml" style="font-family:monospace;">                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;processing</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">&quot;label&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Processing<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;processing</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;shipped</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>	<span style="color: #808080; font-style: italic;">&lt;!-- 此处需以反斜杠结束--&gt;</span>			
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/statuses<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;visible_on_front</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/processing<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>3.接着刷新后台缓存，即可在“processing” 状态的order 里面看到刚才自定义的On Shipping 状态，选择并提交OK。</p>
]]></content:encoded>
			<wfw:commentRss>http://topmagento.com/add-new-magento-order-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

