_productCollection)) { $layer = $this->getLayer(); /* @var $layer Mage_Catalog_Model_Layer */ if ($this->getShowRootCategory()) { $this->setCategoryId(Mage::app()->getStore()->getRootCategoryId()); } // if this is a product view page if (Mage::registry('product')) { // get collection of categories this product is associated with $categories = Mage::registry('product')->getCategoryCollection() ->setPage(1, 1) ->load(); // if the product is associated with any category if ($categories->count()) { // show products from this category $this->setCategoryId(current($categories->getIterator())); } } $origCategory = null; if ($this->getCategoryId()) { $category = Mage::getModel('catalog/category')->load($this->getCategoryId()); if ($category->getId()) { $origCategory = $layer->getCurrentCategory(); $layer->setCurrentCategory($category); } } $this->_productCollection = $layer->getProductCollection(); $team = Mage::getSingleton('core/session')->getTeam(); if($team == 'Orioles'){ $this->_productCollection->addAttributeToFilter('team', 25); }else if($team == 'Ravens'){ $this->_productCollection->addAttributeToFilter('team', 26); } $this->prepareSortableFieldsByCategory($layer->getCurrentCategory()); if ($origCategory) { $layer->setCurrentCategory($origCategory); } } return $this->_productCollection; } } ?>
Fatal error: Class 'Pboys_Teams_Block_Product_List' not found in /var/www/vhosts/poorboys.net/httpdocs/app/code/core/Mage/Core/Model/Layout.php on line 491