title: Prestashop display all products form category without pagination
body: <p>I am building a Module for the category page in prestashop.</p>
  
  <p>Basically in my module.php I have this code:</p>
  
  <pre><code>$category = new Category(Context::getContext()-&gt;shop-&gt;getCategory(),(int)Context::getContext()-&gt;language-&gt;id);
      $nb = (int)(Configuration::get('MOD_NBR'));
      $products = $category-&gt;getProducts((int)Context::getContext()-&gt;language-&gt;id, 1, ($nb ? $nb : 10));
  
      $this-&gt;smarty-&gt;assign(array(
          'myproducts' =&gt; $products,
          'add_prod_display' =&gt; Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
          'homeSize' =&gt; Image::getSize(ImageType::getFormatedName('home')),
      ));
  </code></pre>
  
  <p>Then in mymodule.tpl I have this:</p>
  
  <pre><code>{foreach from=$products item=product name=myproducts}
  
  + other stuff
  </code></pre>
  
  <p>The problem is that I need to get all the products inside the category, but it is only displaying the products on the first page. I can't delete or modify pagination completely, because I need the other products on the category page to be paginated, but in my module I want to get all the products at once (after I will filter them to show only some of them).</p>
  
  <p>As you may see I am kind of lost, but also so desperate, I will appreciate any guidance :)</p>
  
  <p>thanks</p>