php - How to move 'out of stock' products to the end of the lists after search? -
i newbie in magento , need help. need move 'out of stock' products end of lists in search results. how can this?
i've found module catalogsearch used searching. i've seen there table cataloginventory_stock_item , is_in_stock field. correct flag checking product out of stock or not. , think should add order condition when data getting db. can not find where(a file) data getting form catalogsearch_query , catalogsearch_result tables , (and how) should add order condition. can give me example?
this topic : http://www.magentocommerce.com/boards/viewthread/31680/
however, it's bad idea modify core files, or add own files in core directory. recommend make own module, overriding existing core function (you should see loads of tutorials online). it's small extension not impossible achieve.
Comments
Post a Comment