SHOW:
|
|
- or go back to the newest paste.
1 | - | $collection->addAttributeToFilter('category_id', array("in"=>array('26'))); |
1 | + | $collection = Mage::getModel('catalog/product') |
2 | - | $collection->addAttributeToFilter('category_id', array("in"=>array('63'))); |
2 | + | ->addAttributeToFilter('category_id', array("in"=>array('26'))) |
3 | ->addAttributeToFilter('category_id', array("in"=>array('63'))); | |
4 | ||
5 | foreach($collection as $_product){ | |
6 | echo $_product->getName()."<br/>"; | |
7 | }; | |
8 | - | // Fatal error: Call to a member function addAttributeToFilter() on a non-object |
8 | + | |
9 | // There has been an error processing your request | |
10 | Exception printing is disabled by default for security reasons. |