function doCollection() { $collection = new Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection(); $collection->setStoreId(Mage::app()->getStore()->getId()); $collection->addAttributeToSelect('*'); Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection); // Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection); return $collection; }