<?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>Freddie&#039;s Ria World- 修改magento默认排列顺序 &#8211; Blog Title</title>
	<atom:link href="http://javaflex.net/tag/magento%e6%8e%92%e5%ba%8f/feed/" rel="self" type="application/rss+xml" />
	<link>http://javaflex.net</link>
	<description>Just another flex weblog</description>
	<lastBuildDate>Thu, 19 Aug 2010 08:28:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>zh</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>修改magento默认排列顺序</title>
		<link>http://javaflex.net/it/change-magento-default-sort/</link>
		<comments>http://javaflex.net/it/change-magento-default-sort/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 20:53:08 +0000</pubDate>
		<dc:creator>Freddie</dc:creator>
				<category><![CDATA[It生活]]></category>
		<category><![CDATA[magento排序]]></category>

		<guid isPermaLink="false">http://fred.icandy.me/?p=36</guid>
		<description><![CDATA[用magento有一段时间了，有个问题一直很困扰，每次上完产品后，它总是会排到后面，这很不爽~
默认的值为bestValue，这对我来说，根本没什么作用。。。
于是得想办法改一改拉~~
找到这个文件: app/code/core/Mage/Catalog/Block/Product/List/toolbar.php
直接vi(编辑)一下
注意到里面有一个protected 的属性：_direction，初始值为asc 也就是升序，我们把它改为desc，大功告成拉~~~
刷新一下前台 ，OK拉~
您可能也会关注:解决Magento“Must specify JSON encoded source for decoding”的问题！显示最新评论的扩展MagentoWordPress 添加中文言语包~给WordPress添加一个favicon(地址栏显示图标)magento添加多货币 How to Setup a Dual Currency Magento Shop




		
			Share this on del.icio.us
		
		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Subscribe to the comments for this post?
		
		
			Add this to Google Bookmarks
		
		
			Add this to Google Reader
		
		
			Post on Google Buzz
		
		
			Blog this on Blogger
		
		
			Add this to DZone
		





]]></description>
			<content:encoded><![CDATA[<p>用magento有一段时间了，有个问题一直很困扰，每次上完产品后，它总是会排到后面，这很不爽~</p>
<p>默认的值为bestValue，这对我来说，根本没什么作用。。。</p>
<p>于是得想办法改一改拉~~</p>
<p>找到这个文件: app/code/core/Mage/Catalog/Block/Product/List/toolbar.php</p>
<p>直接vi(编辑)一下</p>
<p>注意到里面有一个protected 的属性：_direction，初始值为asc 也就是升序，我们把它改为desc，大功告成拉~~~</p>
<p>刷新一下前台 ，OK拉~</p>
<div id="crp_related"><h3>您可能也会关注:</h3><ul><li><a href="http://javaflex.net/opensource/magento%e2%80%9cmust-specify-json-encoded-source-for-decoding%e2%80%9d/" rel="bookmark" class="crp_title">解决Magento“Must specify JSON encoded source for decoding”的问题！</a></li><li><a href="http://javaflex.net/opensource/magento-show-views-extension/" rel="bookmark" class="crp_title">显示最新评论的扩展Magento</a></li><li><a href="http://javaflex.net/opensource/wordpress-%e6%b7%bb%e5%8a%a0%e4%b8%ad%e6%96%87%e8%a8%80%e8%af%ad%e5%8c%85/" rel="bookmark" class="crp_title">WordPress 添加中文言语包~</a></li><li><a href="http://javaflex.net/opensource/wordpress-add-favico/" rel="bookmark" class="crp_title">给WordPress添加一个favicon(地址栏显示图标)</a></li><li><a href="http://javaflex.net/opensource/how-to-setup-a-dual-currency-magento-shop/" rel="bookmark" class="crp_title">magento添加多货币 How to Setup a Dual Currency Magento Shop</a></li></ul></div>

<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand">
<ul class="socials">
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://javaflex.net/it/change-magento-default-sort/&amp;title=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://javaflex.net/it/change-magento-default-sort/&amp;t=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F+-+http://b2l.me/qzjfu+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://javaflex.net/it/change-magento-default-sort/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://javaflex.net/it/change-magento-default-sort/&amp;title=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-googlereader">
			<a href="http://www.google.com/reader/link?url=http://javaflex.net/it/change-magento-default-sort/&amp;title=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F&amp;srcUrl=http://javaflex.net/it/change-magento-default-sort/&amp;srcTitle=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F&amp;snippet=POST_SUMMARY" rel="nofollow" title="Add this to Google Reader">Add this to Google Reader</a>
		</li>
		<li class="sexy-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://javaflex.net/it/change-magento-default-sort/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="sexy-blogger">
			<a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://javaflex.net/it/change-magento-default-sort/&amp;n=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F&amp;pli=1" rel="nofollow" title="Blog this on Blogger">Blog this on Blogger</a>
		</li>
		<li class="sexy-dzone">
			<a href="http://www.dzone.com/links/add.html?url=http://javaflex.net/it/change-magento-default-sort/&amp;title=%E4%BF%AE%E6%94%B9magento%E9%BB%98%E8%AE%A4%E6%8E%92%E5%88%97%E9%A1%BA%E5%BA%8F&amp;description=POST_SUMMARY" rel="nofollow" title="Add this to DZone">Add this to DZone</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://javaflex.net/it/change-magento-default-sort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
