SHARE
TWEET

first

a guest Jul 2nd, 2014 224 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $collection->addAttributeToFilter('category_id', array("in"=>array('26')));
  2. $collection->addAttributeToFilter('category_id', array("in"=>array('63')));
  3.  
  4. foreach($collection as $_product){
  5.     echo $_product->getName()."<br/>";
  6. };
  7.  
  8. // Fatal error: Call to a member function addAttributeToFilter() on a non-object
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top