use Shopware\Bundle\SearchBundle\Criteria;
use Shopware\Bundle\SearchBundle\CriteriaPartInterface;
use Shopware\Bundle\SearchBundle\FacetResult\FacetResultGroup;
use Shopware\Bundle\SearchBundle\FacetResult\RangeFacetResult;
use Shopware\Bundle\SearchBundle\FacetResult\ValueListFacetResult;
use Shopware\Bundle\SearchBundle\FacetResultInterface;
class FacetFilter implements FacetFilterInterface
{ public function add(Criteria
$criteria) { if ($criteria->
hasBaseCondition('immediate_delivery'
)) { $criteria->
removeFacet('immediate_delivery'
);
} if ($criteria->
hasBaseCondition('shipping_free'
)) { $criteria->
removeFacet('shipping_free'
);
} if ($criteria->
hasBaseCondition('vote_average'
)) { $criteria->
removeFacet('vote_average'
);
}