title: Return product collection which are not in cart
body: <p>I need to get product details which are not in cart. For this I am doing this way. But it returns the product details that are in cart also. But I dont want the product details that are in cart.</p>
  
  <p>For cart details:</p>
  
  <pre><code> $cart = Mage::getModel('checkout/session')-&gt;getQuote();
          foreach ($cart-&gt;getAllItems() as $item) {
          $cartprodid[] = $item-&gt;getProductId();
          }
  </code></pre>
  
  <p>For product collection:</p>
  
  <pre><code>$quote = Mage::getModel('checkout/session')-&gt;getQuote();   
  $grandTotal=$quoteData['grand_total'];
                   $collection = Mage::getModel('catalog/product')-&gt;getCollection();
                   $collection-&gt;addAttributeToSelect('*');    
                   $collection-&gt;addFieldToFilter(array(
                                                 array('attribute'=&gt;'entity_id', array("nin"=&gt;array($cartprodid))),
                                                 ))
                              -&gt;addAttributeToFilter('status', 1)
                              -&gt;addFieldToFilter('visibility', Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH);
                   $collection-&gt;setOrder('sku', 'ASC'); 
  </code></pre>
  
  <p>But I am unable to solve this. Can any one suggest me on this.</p>