title: Prestashop all products
body: <p>I need to select all products, but currently my code is:</p>
  
  <pre><code>$products = $category-&gt;getProducts((int)($params['cookie']-&gt;id_lang), 1, ($nb ? $nb : 10),NULL,NULL,false,true,true /*Random*/, ($nb ? $nb : 10));
  </code></pre>
  
  <p>How can I reshape this so that the products do not depend on a <code>$category</code>. Is there a <code>getProducts()</code> function that is not child of <code>$category</code>?</p>