/** * Initialize db select * * @return Mage_Core_Model_Resource_Db_Collection_Abstract */ protected function _initSelect() { parent::_initSelect(); $this->addCustomerIdFilter(Mage::registry('current_customer')->getId())->resetSortOrder()->addDaysInWishlist()->addStoreData(); return $this; }