Protected Member Functions | |
_getProductCollection () |
Definition at line 3 of file Promotion.php.
_getProductCollection | ( | ) | [protected] |
Retrieve loaded category collection
Reimplemented from Mage_Catalog_Block_Product_List.
Definition at line 5 of file Promotion.php.
00006 { 00007 if (is_null($this->_productCollection)) { 00008 $collection = Mage::getResourceModel('catalog/product_collection'); 00009 Mage::getModel('catalog/layer')->prepareProductCollection($collection); 00010 // your custom filter 00011 $collection->addAttributeToFilter('promotion', 1) 00012 ->addStoreFilter(); 00013 00014 $this->_productCollection = $collection; 00015 } 00016 return $this->_productCollection; 00017 }