Hi David
How to display search result by number of seller (Higher Seller to Lower Seller )
Thanks
Hi Amin,
Edit: updated for 18/06A
Sure - in search.php, first look for the following code at line 10:
$sort = (isset($_GET["sort"])?$_GET["sort"]:"relevance");
...and REPLACE with:
$sort = (isset($_GET["sort"])?$_GET["sort"]:"numMerchants");
(this will make numMerchants the default sort)
Then, look for the following code at line 97:
$parts = explode(":",$q);
$orderByDefault["numMerchants"] = "numMerchants DESC"; $orderByFullText["numMerchants"] = "numMerchants DESC"; $parts = explode(":",$q);
Cheers, David. -- PriceTapestry.com
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi Amin,
Edit: updated for 18/06A
Sure - in search.php, first look for the following code at line 10:
$sort = (isset($_GET["sort"])?$_GET["sort"]:"relevance");
...and REPLACE with:
$sort = (isset($_GET["sort"])?$_GET["sort"]:"numMerchants");
(this will make numMerchants the default sort)
Then, look for the following code at line 97:
$parts = explode(":",$q);
...and REPLACE with:
$orderByDefault["numMerchants"] = "numMerchants DESC";
$orderByFullText["numMerchants"] = "numMerchants DESC";
$parts = explode(":",$q);
Cheers,
David.
--
PriceTapestry.com