View Full Version : Refine search sort date
Aleksandar Apostolovski
March 6, 2019, 07:46 PM
Hi,
I've noticed this: when you hit search for the first time then you get the latest results as first, but when you hit search second time (actually this is the refine search) you get the oldest results as first.
I don't fill anything, I just use search button.
How can I change the refine's search to show me the latest results too?
Rudi
March 7, 2019, 03:47 AM
Hello,
The reason is that on refine search form you have 'sort by' field and by default it's selected as 'Ascending' while from home search it orders listings by desc
Aleksandar Apostolovski
March 7, 2019, 06:38 AM
How can I change refine to show latest added listings by default (descending)?
Rudi
March 7, 2019, 09:08 AM
Go to ftp > templates > tpl > blocks > refine_search.tpl
change:
<option value="desc" {if $smarty.request.f.sort_type == 'desc'}selected="selected"{/if}>{$lang.descending}</option>
to
<option value="desc" {if $smarty.request.f.sort_type != 'asc'}selected="selected"{/if}>{$lang.descending}</option>
~55 row
Aleksandar Apostolovski
March 7, 2019, 07:14 PM
Thank you!!!
Aleksandar Apostolovski
March 12, 2019, 01:39 PM
How can I change the same thing on the advanced search form?
Wei Hong
March 13, 2019, 01:56 AM
How can I change the same thing on the advanced search form?
You replace the same thing on advanced search .tpl file, I don't remember the exact name but it should be something advanced_search, same place
Aleksandar Apostolovski
March 20, 2019, 07:56 PM
Thank you Wei
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.