I've created an attribute for my categories (it's displayed on back-office and I can save values).
In sur php file Result.php for the research process, I want to add this attribute as a filter.
how to I do that ? In _getProductCollection I've added this line :
$this->productCollection = $this->getListBlock()->getLoadedProductCollection(); $this->productCollection->getSelect()->join(array('cats' => 'catalog_category_product'), 'cats.product_id = e.entity_id'); $this->productCollection->getSelect()->group("cats.attribute");
But it shows non filtered result
Any thoughts ?