i have a problem with customizing product listing (which is filter by layer nav filter). I spend a couple days googleing that problem and I haven’t found anything which could help me.
I need two separated objects of productCollection in Catalog/Block/Product/List.php lets say in _beforeToHtml method.
But i can’t reach that because:
$collection = $this->_getProductCollection();
$collection_copy = clone $collection;
$collection ->addAttributeToFilter('some_attr', array(
'eq' => somevalue
the problem is that the addAttributeToFilter is also set for $collection_copy :(.
I need two separated $collections because i need find two specific products “take them” and remove from main collection.
Both actions need to be done on filtered (layer) collections.
Thank for Your time.