You are here:  » Exclude One merchant in Serch Results

Support Forum



Exclude One merchant in Serch Results

Submitted by technoarenasol on Wed, 2013-02-27 17:55 in

Hi David

Can be possible to exclude one merchants products result in Search.php

Cannot be display one merchant products in search.php like

Product1 : merchant2,merchant1,merchant3
Product2 : merchant 1

Product1 available on merchant2,merchant1,merchant3 ...This product available on all merchant so its display on search page.

Product2 available on merchant1. So exclude this product in search.php

Thanks
Amin

Submitted by support on Wed, 2013-02-27 20:16

Hello Amin,

You can easily add a specific merchant exclusion by way of an additional clause in $priceWhere, but check for any performance implications as this will affect the index options available to the database. To give it a go, in search.php, look for the following code at line 51:

    $orderByDefault = array();

...and REPLACE with:

    $priceWhere .= " AND merchant <> 'merchant1' ";
    $orderByDefault = array();

Cheers,
David.
--
PriceTapestry.com