<?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 Feb 2012 19:34:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jojo</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-26026</link>
		<dc:creator>Jojo</dc:creator>
		<pubDate>Sat, 04 Feb 2012 01:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-26026</guid>
		<description>Obvioulsy and apparently no one is able to answer how do you IMPORT that  And NOT fix it from the backend.!!!
Cheers</description>
		<content:encoded><![CDATA[<p>Obvioulsy and apparently no one is able to answer how do you IMPORT that  And NOT fix it from the backend.!!!<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-26012</link>
		<dc:creator>Jesse</dc:creator>
		<pubDate>Fri, 03 Feb 2012 17:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-26012</guid>
		<description>Wow really? There&#039;s a field right there and you can&#039;t just put a number in there and sort by the number? Did anyone at Magento ever actually run a store? Apparently not.

As far as changing the oh-so-flexible sort values for the person above me, you OBVIOUSLY have to uncheck that box near the items so you can then select which one. Isn&#039;t that totally obvious? ;-)</description>
		<content:encoded><![CDATA[<p>Wow really? There&#8217;s a field right there and you can&#8217;t just put a number in there and sort by the number? Did anyone at Magento ever actually run a store? Apparently not.</p>
<p>As far as changing the oh-so-flexible sort values for the person above me, you OBVIOUSLY have to uncheck that box near the items so you can then select which one. Isn&#8217;t that totally obvious? <img src='http://inchoo.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-25821</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 18 Jan 2012 18:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-25821</guid>
		<description>Doesn anybody know how to change to sort option from a drop down into simple words you can click. can&#039;t seem to find the answer to this anywhere.

Cheers,

Tom.</description>
		<content:encoded><![CDATA[<p>Doesn anybody know how to change to sort option from a drop down into simple words you can click. can&#8217;t seem to find the answer to this anywhere.</p>
<p>Cheers,</p>
<p>Tom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phpguy</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-24167</link>
		<dc:creator>phpguy</dc:creator>
		<pubDate>Wed, 07 Dec 2011 02:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-24167</guid>
		<description>how do I retrieve the the position for a category? Tried getting a product collection it doesn&#039;t appear to be an attribute.</description>
		<content:encoded><![CDATA[<p>how do I retrieve the the position for a category? Tried getting a product collection it doesn&#8217;t appear to be an attribute.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aknal</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-24064</link>
		<dc:creator>Aknal</dc:creator>
		<pubDate>Tue, 29 Nov 2011 16:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-24064</guid>
		<description>add below code below sort by foreach in toolbar.phtml
	&lt;option value=&quot;getOrderUrl(&#039;price&#039;, &#039;asc&#039;) ?&gt;&quot;isOrderCurrent(&#039;price&#039;) &amp;&amp; $this-&gt;getCurrentDirection() == &#039;asc&#039;): ?&gt; selected=&quot;selected&quot;&gt;
                Lowest Price
            
            &lt;option value=&quot;getOrderUrl(&#039;price&#039;, &#039;desc&#039;) ?&gt;&quot;isOrderCurrent(&#039;price&#039;) &amp;&amp; $this-&gt;getCurrentDirection() == &#039;desc&#039;): ?&gt; selected=&quot;selected&quot;&gt;
                Highest Price
            </description>
		<content:encoded><![CDATA[<p>add below code below sort by foreach in toolbar.phtml<br />
	&lt;option value=&quot;getOrderUrl(&#8216;price&#8217;, &#8216;asc&#8217;) ?&gt;&#8221;isOrderCurrent(&#8216;price&#8217;) &amp;&amp; $this-&gt;getCurrentDirection() == &#8216;asc&#8217;): ?&gt; selected=&#8221;selected&#8221;&gt;<br />
                Lowest Price</p>
<p>            &lt;option value=&quot;getOrderUrl(&#8216;price&#8217;, &#8216;desc&#8217;) ?&gt;&#8221;isOrderCurrent(&#8216;price&#8217;) &amp;&amp; $this-&gt;getCurrentDirection() == &#8216;desc&#8217;): ?&gt; selected=&#8221;selected&#8221;&gt;<br />
                Highest Price</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-23908</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Wed, 23 Nov 2011 19:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-23908</guid>
		<description>Is there a way to import product position using a CSV import?
every product will have a position # within a category.

Thanks</description>
		<content:encoded><![CDATA[<p>Is there a way to import product position using a CSV import?<br />
every product will have a position # within a category.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sara</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-23324</link>
		<dc:creator>Sara</dc:creator>
		<pubDate>Tue, 01 Nov 2011 11:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-23324</guid>
		<description>I have 2 questions, we are just about to launch a new site and we did a bulk upload of products.
1. I see on my category pages items are listed on pages 1,2 3 etc.. that I would like to switch with items on pages 12, 13, 14-- does one need code for this or is this simple to do and how?
2. How can one add in show ALL?
Thanks you!</description>
		<content:encoded><![CDATA[<p>I have 2 questions, we are just about to launch a new site and we did a bulk upload of products.<br />
1. I see on my category pages items are listed on pages 1,2 3 etc.. that I would like to switch with items on pages 12, 13, 14&#8211; does one need code for this or is this simple to do and how?<br />
2. How can one add in show ALL?<br />
Thanks you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eggplanet(gowri)</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-23013</link>
		<dc:creator>eggplanet(gowri)</dc:creator>
		<pubDate>Fri, 07 Oct 2011 06:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-23013</guid>
		<description>Hello,
 I am having price option in sort select box.But want to make it into two types . 
1.Price:High to low(desc)
2.Price:Low to high (asc)

and also i would like to add my whishlist option in select list
Any suggestion . please</description>
		<content:encoded><![CDATA[<p>Hello,<br />
 I am having price option in sort select box.But want to make it into two types .<br />
1.Price:High to low(desc)<br />
2.Price:Low to high (asc)</p>
<p>and also i would like to add my whishlist option in select list<br />
Any suggestion . please</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maier</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-22989</link>
		<dc:creator>Maier</dc:creator>
		<pubDate>Mon, 03 Oct 2011 14:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-22989</guid>
		<description>How would I turn this into a module? It should be easy to do this, basically i want to make a module that tells the system to use the local code of Toolbar.php instead of the mage core one.

Also does anyone know how to make it so no matter what products with qty &lt; 1 are put in the back?</description>
		<content:encoded><![CDATA[<p>How would I turn this into a module? It should be easy to do this, basically i want to make a module that tells the system to use the local code of Toolbar.php instead of the mage core one.</p>
<p>Also does anyone know how to make it so no matter what products with qty &lt; 1 are put in the back?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-22603</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 08 Sep 2011 02:11:05 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-22603</guid>
		<description>Are you aware of any good extensions that provide more options in this area? Something that automatically calculated profitability per item and put the most profitable items first would be fantastic... with both price and cost as variables within the product info, you&#039;d need to combine that info with a calculation of run rate and you&#039;d be away. 

Oh, yes, if they could put out-of-stock items at the back then reintroduce them at their previous position when they&#039;re back in stock that would be great! :)

Might also be helpful to introduce new products at a specific place... so they get views and aren&#039;t buried... and then let them float.</description>
		<content:encoded><![CDATA[<p>Are you aware of any good extensions that provide more options in this area? Something that automatically calculated profitability per item and put the most profitable items first would be fantastic&#8230; with both price and cost as variables within the product info, you&#8217;d need to combine that info with a calculation of run rate and you&#8217;d be away. </p>
<p>Oh, yes, if they could put out-of-stock items at the back then reintroduce them at their previous position when they&#8217;re back in stock that would be great! <img src='http://inchoo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Might also be helpful to introduce new products at a specific place&#8230; so they get views and aren&#8217;t buried&#8230; and then let them float.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CDA</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-22576</link>
		<dc:creator>CDA</dc:creator>
		<pubDate>Tue, 06 Sep 2011 12:57:03 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-22576</guid>
		<description>does not work with 1.5.0.1</description>
		<content:encoded><![CDATA[<p>does not work with 1.5.0.1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XSA</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-21914</link>
		<dc:creator>XSA</dc:creator>
		<pubDate>Fri, 15 Jul 2011 10:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-21914</guid>
		<description>On my magento 1.4.1.0, it&#039;s doesn&#039;t work, nothing work to list by product position</description>
		<content:encoded><![CDATA[<p>On my magento 1.4.1.0, it&#8217;s doesn&#8217;t work, nothing work to list by product position</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafa Alves</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-21851</link>
		<dc:creator>Rafa Alves</dc:creator>
		<pubDate>Thu, 07 Jul 2011 13:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-21851</guid>
		<description>Nice, tks for your help!</description>
		<content:encoded><![CDATA[<p>Nice, tks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prajosh</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-21548</link>
		<dc:creator>prajosh</dc:creator>
		<pubDate>Thu, 16 Jun 2011 06:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-21548</guid>
		<description>Great article.

Do u know how we can sort by newly ordered products as default ?

Thanks
Prajosh</description>
		<content:encoded><![CDATA[<p>Great article.</p>
<p>Do u know how we can sort by newly ordered products as default ?</p>
<p>Thanks<br />
Prajosh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-20594</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Tue, 26 Apr 2011 19:31:33 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-20594</guid>
		<description>1.5.1 changing the toobar.php line 119 protected direction to &#039;desc&#039; does not change my default ascend on Sort by.  Tried two different sites. 

Can anyone suggest some code changes for toolbar.php line 397? Perhaps that will work for me. Or some other idea?


line 397
[public function setDefaultOrder($field)
    {
        if (isset($this-&gt;_availableOrder[$field])) {
            $this-&gt;_orderField = $this-&gt;getEntityId();
        }
        return $this;
    }]

Thanks; Bryan.</description>
		<content:encoded><![CDATA[<p>1.5.1 changing the toobar.php line 119 protected direction to &#8216;desc&#8217; does not change my default ascend on Sort by.  Tried two different sites. </p>
<p>Can anyone suggest some code changes for toolbar.php line 397? Perhaps that will work for me. Or some other idea?</p>
<p>line 397<br />
[public function setDefaultOrder($field)<br />
    {<br />
        if (isset($this-&gt;_availableOrder[$field])) {<br />
            $this-&gt;_orderField = $this-&gt;getEntityId();<br />
        }<br />
        return $this;<br />
    }]</p>
<p>Thanks; Bryan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandlers</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-20544</link>
		<dc:creator>Chandlers</dc:creator>
		<pubDate>Fri, 22 Apr 2011 11:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-20544</guid>
		<description>I found this worked great so long as there are not subcategories below, that contain products not listed in the category your sorting. For some reason these products are getting listed in the main category, ahead of the products your trying to sort! I&#039;m not sure if this is a bug in Magento but its driving me nuts!!</description>
		<content:encoded><![CDATA[<p>I found this worked great so long as there are not subcategories below, that contain products not listed in the category your sorting. For some reason these products are getting listed in the main category, ahead of the products your trying to sort! I&#8217;m not sure if this is a bug in Magento but its driving me nuts!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Willox</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-12149</link>
		<dc:creator>Rob Willox</dc:creator>
		<pubDate>Mon, 20 Dec 2010 11:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-12149</guid>
		<description>Using 1.3.2.3 and can&#039;t get the order to default to price desc. Have set the options globally in config and tried individual categories but  the prices are still not either desc or asc.

Have tried once or twice and it has worked but reverts back to almost random order for no apparent reason, or one I can&#039;t fathom.

Is it possible to code the default order to price desc but still keep the other user choices available?

Been going on for months now and can&#039;t seem to sort! Would upgrading to most recent stable help or could it be some other issue?

regards</description>
		<content:encoded><![CDATA[<p>Using 1.3.2.3 and can&#8217;t get the order to default to price desc. Have set the options globally in config and tried individual categories but  the prices are still not either desc or asc.</p>
<p>Have tried once or twice and it has worked but reverts back to almost random order for no apparent reason, or one I can&#8217;t fathom.</p>
<p>Is it possible to code the default order to price desc but still keep the other user choices available?</p>
<p>Been going on for months now and can&#8217;t seem to sort! Would upgrading to most recent stable help or could it be some other issue?</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manas Andhare</title>
		<link>http://inchoo.net/ecommerce/magento/changing-default-category-sort-order-in-magento/comment-page-1/#comment-9060</link>
		<dc:creator>Manas Andhare</dc:creator>
		<pubDate>Tue, 09 Nov 2010 11:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://inchoo.net/?p=946#comment-9060</guid>
		<description>hey buddy, for magento 1.4.1.1

in app\code\core\Mage\Catalog\Model\Config.php

just remove 

$options = array(
&#039;position&#039;  =&gt; Mage::helper(&#039;catalog&#039;)-&gt;__(&#039;Position&#039;)
 );

and you are done
there will be no sort order like position</description>
		<content:encoded><![CDATA[<p>hey buddy, for magento 1.4.1.1</p>
<p>in app\code\core\Mage\Catalog\Model\Config.php</p>
<p>just remove </p>
<p>$options = array(<br />
&#8216;position&#8217;  =&gt; Mage::helper(&#8216;catalog&#8217;)-&gt;__(&#8216;Position&#8217;)<br />
 );</p>
<p>and you are done<br />
there will be no sort order like position</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

