php - Magento advanced search - inconsistent order of results / how to define multiple order-by fields -


i'm finding search results appearing in inconsistent order in magento 1.9.0.1.

in this example below i've specified results should order on price, works, products of same price appearing in different order each time perform search.

does know how fix this?

two possible solutions (that don't know how implement) are:

  1. to add default, base order-by advanced searches (on product id or sku instance)
  2. find way of specifying multiple order-by fields, in direct sql statement, "...order xxx asc, yyy desc..."

i believe i've fixed applying xml /app/design/frontend//thk/default/layout/catalogsearch.xml, see "search_result_list" element below. seems have achieved (1) above.

<catalogsearch_advanced_result translate="label">     ...     <reference name="search_result_list">         <action method="setdefaultdirection"><param>asc</param></action>         <action method="setsortby"><param>name</param></action>     </reference>    ... </catalogsearch_advanced_result> 

kudos adam-allen in stackexchange answer.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -