Magento Forum

   
How I can display more than 1 category products on site ? 
 
spider
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2007-10-12
 

I have a problem. Now I make custom Mainpage.php and I see products from one category but I need to display 3 category products on 1 site. In my opinion the problem is method:

public function _beforeToHtml()
    
{

        $toolbar 
$this->getLayout()->createBlock('catalog/product_list_toolbar''product_list.toolbar');
        
$toolbar->setCollection($this->_getProductCollection($_SESSION['catid']));
        
$this->setChild('toolbar'$toolbar);
        
$this->_getProductCollection()->load();
        
Mage::getModel('review/review')->appendSummary($this->_getProductCollection($_SESSION['catid']));

        return 
parent::_beforeToHtml();
    
}
witch is executed only once at the begining so then shows me only one category products.
My view file is:
standart List.phtml but copied 3 times for showing 3 categories.

can anyone help me.

 
Magento Community Magento Community
Magento Community
Magento Community
 
spider
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2007-10-12
 

Somebody know how to do this ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
spider
Jr. Member
 
Avatar
Total Posts:  19
Joined:  2007-10-12
 

Ok I already handle of this.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top