Important. We are closed. Due to decreased amount of time available, we don't accept new orders and we don't provide support for existing ones.

Wow, you guys have a great support team. When my layered navigation suddenly developed a bug, you guys found it and fixed it for me in less than 24 ho ... Read more

Jan 25, 2017 Mr. Don President

Certified Magento Enterprise developer Certified Magento developer Certified Magento theme developer Certified Magento specialist

Manadev is certified extension and theme
developer for Magento

How to Override Default Sorting Method in Layout XML

Instead of calling the setDefaultOrder method of product_list_toolbar block, use overrideDefaultOrder method instead.

See the following layout XML example:

<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
    <catalogsearch_result_index>
        <reference name="product_list_toolbar">
            <action method="overrideDefaultOrder"><order>relevance</order></action>
        </reference>
    </catalogsearch_result_index>
</layout>

This will set the default order by "Relevance" on product search pages.

We Accept: PayPal Visa MasterCard American Express Discover