I want to get all items from the product compare list, but only for a certain visitor. This is what I tried:
$_productCollection = Mage::helper('catalog/product_compare')->getItemCollection(); $test = $_productCollection->addFieldToFilter('visitor_id', 2)->getItems();
This should return nothing, because in my catalog_compare_item table is no row for visitor_id 2. But it returns everything no matter if I use a filter or not. Whats the correct way of doing that?