You are here:  » Search result arrange by number of seller


Search result arrange by number of seller

Submitted by technoarenasol on Sun, 2013-03-31 16:54 in

Hi David

How to display search result by number of seller (Higher Seller to Lower Seller )

Thanks

Submitted by support on Mon, 2013-04-01 14:26

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