You are here:  » Order products displayed

Support Forum



Order products displayed

Submitted by JasonG on Wed, 2011-10-19 10:09 in

OK will try and explain this the best I can

I have over 24,000 products, not all will be mapped as not all merchants sell all products.

What would be really cool is if there was a way that when a visitor clicks a category, the products that show 1st are products that are mapped, with more than one merchant. That way we always see compare prices as opposed to more info on the 1st page of a Category - it's going to take a long time to map thousands of products so this is being done a few per day over time!

Is this possible

Cheers
Stuart

Submitted by support on Wed, 2011-10-19 11:03

Hi Stuart,

Sure - in search.php look for the following code at line 51:

    $orderByDefault = array();

...and REPLACE with:

    $orderByDefault = array();
    $orderByDefault["relevance"] = "numMerchants DESC";

...(there is no relevance sort defined for $orderByDefault so the above is adding one) and then look for the following code at line 61:

    $orderByFullText["relevance"] = "relevance DESC";

...and REPLACE with:

    $orderByFullText["relevance"] = "numMerchants DESC, relevance DESC";

Cheers,
David.
--
PriceTapestry.com

Submitted by JasonG on Wed, 2011-10-19 11:38

Superb, works a treat

Thanks
Stuart