When I am landing in a Product Category Page I am getting the sorting order Descending Direction like below. I need this only at "Sort By Name" but not in others.

enter image description here

But I would like to have Ascending Direction when I am landing a Product Category Page like below one.

I need this only at "Sort By Name" but not in others.

How can I do that ?


enter image description here


1 Answer 1


You can set the default sort order of your category in the local.xml of your theme:

    <reference name="product_list">
        <action method="setDefaultDirection"><string>asc</string></action>
        <action method="setDefaultOrder"><string>position</string></action>

Similarly you can add code for <catalog_category_layered> and <catalogsearch_result_index> also.

Please let me know if you have any query.

  • Thank @Mohit Kumar Arora. But I could not find your code snippet in my local.xml file. I am using Shopper Default Theme. Thanks
    – abu abu
    Commented Jul 13, 2016 at 8:37
  • If this code snippet does not exist in your theme's local.xml, then you need to add it. Commented Jul 13, 2016 at 8:49
  • Thank @Mohit Kumar Arora for your reply.Your solution is not working. Thanks
    – abu abu
    Commented Jul 18, 2016 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.