<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Changing default category sort order in Magento</title>
	<atom:link href="http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/</link>
	<description>Magento Design and Magento Development Professionals - Inchoo</description>
	<lastBuildDate>Fri, 10 Sep 2010 04:05:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: sunil</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-7951</link>
		<dc:creator>sunil</dc:creator>
		<pubDate>Thu, 26 Aug 2010 07:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-7951</guid>
		<description>Thanx a lot....</description>
		<content:encoded><![CDATA[<p>Thanx a lot&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ANDiTKO</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-7197</link>
		<dc:creator>ANDiTKO</dc:creator>
		<pubDate>Wed, 02 Jun 2010 11:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-7197</guid>
		<description>Well if you want to change the Default &quot;order by&quot; field,  without coding you can in v1.4! Just from the Admin Settings.

For individual categories go to: Catalog&gt;Manage Categories&gt;(Pick the Category you want to change)&gt;Display Settings&gt;Default Product Listing Sort by&gt; And Select some of the available fields

For the Global setting go to: System&gt;Settings&gt;Catalog&gt;Frontend&gt;Product listing sort by


Also, you can use custom fields to use as &quot;order by&quot;. In your Attribute creation there is the option &quot;Used for sorting in product listing&quot;. Set this to YES, and you will be able to sort your products by your custom Field (Attribute).</description>
		<content:encoded><![CDATA[<p>Well if you want to change the Default &#8220;order by&#8221; field,  without coding you can in v1.4! Just from the Admin Settings.</p>
<p>For individual categories go to: Catalog&gt;Manage Categories&gt;(Pick the Category you want to change)&gt;Display Settings&gt;Default Product Listing Sort by&gt; And Select some of the available fields</p>
<p>For the Global setting go to: System&gt;Settings&gt;Catalog&gt;Frontend&gt;Product listing sort by</p>
<p>Also, you can use custom fields to use as &#8220;order by&#8221;. In your Attribute creation there is the option &#8220;Used for sorting in product listing&#8221;. Set this to YES, and you will be able to sort your products by your custom Field (Attribute).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toniyecla</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-7193</link>
		<dc:creator>toniyecla</dc:creator>
		<pubDate>Wed, 02 Jun 2010 07:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-7193</guid>
		<description>the tip is to avoid Position order (almost not be default) :) 

regards!</description>
		<content:encoded><![CDATA[<p>the tip is to avoid Position order (almost not be default) <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ANDiTKO</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-7187</link>
		<dc:creator>ANDiTKO</dc:creator>
		<pubDate>Tue, 01 Jun 2010 18:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-7187</guid>
		<description>For magento 1.4 chage line 119  ( /app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php )to:
protected $_direction = &#039;desc&#039;;</description>
		<content:encoded><![CDATA[<p>For magento 1.4 chage line 119  ( /app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php )to:<br />
protected $_direction = &#8216;desc&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: toniyecla</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-7117</link>
		<dc:creator>toniyecla</dc:creator>
		<pubDate>Thu, 20 May 2010 22:06:06 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-7117</guid>
		<description>please try to comment this in app/code/core/Mage/Catalog/Model/Config.php:

    public function getAttributeUsedForSortByArray()
    {
        $options = array(
            // &#039;position&#039;  =&gt; Mage::helper(&#039;catalog&#039;)-&gt;__(&#039;Position&#039;)
        );
        foreach ($this-&gt;getAttributesUsedForSortBy() as $attribute) {
            /* @var $attribute Mage_Eav_Model_Entity_Attribute_Abstract */
            $options[$attribute-&gt;getAttributeCode()] = $attribute-&gt;getStoreLabel();
        }

        return $options;
    }</description>
		<content:encoded><![CDATA[<p>please try to comment this in app/code/core/Mage/Catalog/Model/Config.php:</p>
<p>    public function getAttributeUsedForSortByArray()<br />
    {<br />
        $options = array(<br />
            // &#8216;position&#8217;  =&gt; Mage::helper(&#8216;catalog&#8217;)-&gt;__(&#8216;Position&#8217;)<br />
        );<br />
        foreach ($this-&gt;getAttributesUsedForSortBy() as $attribute) {<br />
            /* @var $attribute Mage_Eav_Model_Entity_Attribute_Abstract */<br />
            $options[$attribute-&gt;getAttributeCode()] = $attribute-&gt;getStoreLabel();<br />
        }</p>
<p>        return $options;<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-6559</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Wed, 24 Mar 2010 16:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-6559</guid>
		<description>The code for $this-&gt;_availableOrder isn&#039;t there in 1.3.2.4. Instead, it sets it to simply &#039;array()&#039;, and $this-&gt;_availableOrder is set in the construct, by calling $this-&gt;_getConfig()-&gt;getAttributeUsedForSortByArray(); This hits the database for all attributes that are considered sortable, then builds a list based on that. It&#039;s also not possible to override it as $this-&gt;_availableOrder is also &#039;reset&#039; when Mage_Catalog_Block_Product_List kicks in (around line 150, there&#039;s a $toolbar-&gt;setAvailableOrders). *sigh*
Any clues how to get around this?
Thanks</description>
		<content:encoded><![CDATA[<p>The code for $this-&gt;_availableOrder isn&#8217;t there in 1.3.2.4. Instead, it sets it to simply &#8216;array()&#8217;, and $this-&gt;_availableOrder is set in the construct, by calling $this-&gt;_getConfig()-&gt;getAttributeUsedForSortByArray(); This hits the database for all attributes that are considered sortable, then builds a list based on that. It&#8217;s also not possible to override it as $this-&gt;_availableOrder is also &#8216;reset&#8217; when Mage_Catalog_Block_Product_List kicks in (around line 150, there&#8217;s a $toolbar-&gt;setAvailableOrders). *sigh*<br />
Any clues how to get around this?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stevefox</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-6231</link>
		<dc:creator>stevefox</dc:creator>
		<pubDate>Wed, 17 Feb 2010 19:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-6231</guid>
		<description>in the last version we can set the default sort order between 3 deicded attribute best value name and price ... that&#039;s ok thank to the system config menu..... if we want to change the same about search result which is the best solution ??? which is exactly relevance ???</description>
		<content:encoded><![CDATA[<p>in the last version we can set the default sort order between 3 deicded attribute best value name and price &#8230; that&#8217;s ok thank to the system config menu&#8230;.. if we want to change the same about search result which is the best solution ??? which is exactly relevance ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scalesmart</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-6221</link>
		<dc:creator>Scalesmart</dc:creator>
		<pubDate>Tue, 16 Feb 2010 15:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-6221</guid>
		<description>This is bugging me as well. I can&#039;t seem to get it to work by price.

It&#039;s all messed up - http://www.scalesmart.co.uk/bench-scales/counting-scales?order=price&amp;dir=asc

This this a Magento problem or an Andrew problem?!</description>
		<content:encoded><![CDATA[<p>This is bugging me as well. I can&#8217;t seem to get it to work by price.</p>
<p>It&#8217;s all messed up &#8211; <a href="http://www.scalesmart.co.uk/bench-scales/counting-scales?order=price&amp;dir=asc" rel="nofollow">http://www.scalesmart.co.uk/bench-scales/counting-scales?order=price&amp;dir=asc</a></p>
<p>This this a Magento problem or an Andrew problem?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-6102</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-6102</guid>
		<description>@Daniel: Yep, changed again.</description>
		<content:encoded><![CDATA[<p>@Daniel: Yep, changed again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-5932</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Thu, 21 Jan 2010 12:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-5932</guid>
		<description>Well that doesn&#039;t seem to work for latest Magento version.
My toolbar.php doesn&#039;t have any of that sort of code :-(</description>
		<content:encoded><![CDATA[<p>Well that doesn&#8217;t seem to work for latest Magento version.<br />
My toolbar.php doesn&#8217;t have any of that sort of code <img src='http://inchoo.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-5626</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Wed, 16 Dec 2009 21:50:51 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-5626</guid>
		<description>That was great! Just changing the position number in the category products tab works perfect. This way I don&#039;t have to be messing around with coding.

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>That was great! Just changing the position number in the category products tab works perfect. This way I don&#8217;t have to be messing around with coding.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andres Galindo</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-4110</link>
		<dc:creator>Andres Galindo</dc:creator>
		<pubDate>Wed, 02 Dec 2009 00:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-4110</guid>
		<description>Just wanted yo let you know - it helped. Thanks.</description>
		<content:encoded><![CDATA[<p>Just wanted yo let you know &#8211; it helped. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kim</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-3442</link>
		<dc:creator>kim</dc:creator>
		<pubDate>Fri, 02 Oct 2009 07:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-3442</guid>
		<description>Thanks very very much...!!!
its helped me so much.
thanks i&#039;m delight</description>
		<content:encoded><![CDATA[<p>Thanks very very much&#8230;!!!<br />
its helped me so much.<br />
thanks i&#8217;m delight</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CK Rock</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-2818</link>
		<dc:creator>CK Rock</dc:creator>
		<pubDate>Wed, 15 Jul 2009 17:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-2818</guid>
		<description>For those of you who don’t want to alter the core code, adding this to the /app/design/frontend/default/[theme]/layout/catalog.xml file seems to work:
[code]

    &lt;!-- Add this line --&gt;
    name
    

[/code]
This would make your code “upgrade-proof”.  Feel free to correct this if it’s wrong.</description>
		<content:encoded><![CDATA[<p>For those of you who don’t want to alter the core code, adding this to the /app/design/frontend/default/[theme]/layout/catalog.xml file seems to work:</p>
<div class="cic_codes_div"><code></p>
<p>    &lt;!-- Add this line --&gt;<br />
    name</p>
<p></code></div>
<p>This would make your code “upgrade-proof”.  Feel free to correct this if it’s wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: choise</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-1571</link>
		<dc:creator>choise</dc:creator>
		<pubDate>Sat, 18 Apr 2009 11:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-1571</guid>
		<description>does not work with 1.3.x
there was an option embedded in the configuration menu for changing the sort order. in 1.3.0 there is a bug, so the sort order is alwas &quot;best value&quot;. updating to 1.3.1 will fix this problem.</description>
		<content:encoded><![CDATA[<p>does not work with 1.3.x<br />
there was an option embedded in the configuration menu for changing the sort order. in 1.3.0 there is a bug, so the sort order is alwas &#8220;best value&#8221;. updating to 1.3.1 will fix this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prits</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-1416</link>
		<dc:creator>prits</dc:creator>
		<pubDate>Thu, 26 Mar 2009 11:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-1416</guid>
		<description>I want the same but for Search Result. When I search anything in Search box, it return the Product List with Sort By option &quot;Relevance&quot;. I want to make &quot;Name&quot; as a default sort option instead of &quot;Relevance&quot;. Please suggest me..</description>
		<content:encoded><![CDATA[<p>I want the same but for Search Result. When I search anything in Search box, it return the Product List with Sort By option &#8220;Relevance&#8221;. I want to make &#8220;Name&#8221; as a default sort option instead of &#8220;Relevance&#8221;. Please suggest me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paaaaa</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-1177</link>
		<dc:creator>Paaaaa</dc:creator>
		<pubDate>Sun, 01 Mar 2009 14:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-1177</guid>
		<description>yes, that helped. thanks!</description>
		<content:encoded><![CDATA[<p>yes, that helped. thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
