00001 <?php 00002 00003 class Mage_Catalog_Block_Product_List_Promotion extends Mage_Catalog_Block_Product_List 00004 { 00005 protected function _getProductCollection() 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 } 00018 }