Public Member Functions | |
getItems () | |
Protected Member Functions | |
_prepareData () | |
_beforeToHtml () | |
Protected Attributes | |
$_itemCollection |
Definition at line 36 of file Crosssell.php.
_beforeToHtml | ( | ) | [protected] |
Before rendering html process Prepare items collection
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 78 of file Crosssell.php.
00079 { 00080 $this->_prepareData(); 00081 return parent::_beforeToHtml(); 00082 }
_prepareData | ( | ) | [protected] |
Prepare crosssell items data
Definition at line 50 of file Crosssell.php.
00051 { 00052 $product = Mage::registry('product'); 00053 /* @var $product Mage_Catalog_Model_Product */ 00054 00055 $this->_itemCollection = $product->getCrossSellProductCollection() 00056 ->addAttributeToSelect(Mage::getSingleton('catalog/config')->getProductAttributes()) 00057 ->addAttributeToSort('position', 'asc') 00058 ->addStoreFilter(); 00059 00060 // Mage::getSingleton('catalog/product_status')->addSaleableFilterToCollection($this->_itemCollection); 00061 Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($this->_itemCollection); 00062 00063 $this->_itemCollection->load(); 00064 00065 foreach ($this->_itemCollection as $product) { 00066 $product->setDoNotUseCategoryId(true); 00067 } 00068 00069 return $this; 00070 }
getItems | ( | ) |
$_itemCollection [protected] |
Definition at line 43 of file Crosssell.php.