title: Hide out of stock products in journal 2 theme of opencart
body: <p>without the code , next page link show</p>
  
  <p>i.stack.imgur.com/0Oniu.jpg</p>
  
  <p>with the code the next page link does not show</p>
  
  <p>i.stack.imgur.com/ljtmr.jpg</p>
  
  <p>Help . </p>
  
  <p>Code was written by ainosilva</p>
  
  <p><a href="http://forum.opencart.com/viewtopic.php?f=20&amp;t=62631#p381559" rel="nofollow">http://forum.opencart.com/viewtopic.php?f=20&amp;t=62631#p381559</a></p>
  
  <p>I fixed the issue by increase the number from 0 to 300</p>
  
  <p>//$product_total = $this->model_catalog_product->getTotalProducts($data);
           $product_total=0;</p>
  
  <p>but when i open second page i still find some out of stock products with incorrect url .</p>
  
  <p>i.stack.imgur.com/tagBy.jpg</p>
  
  <p>Help!</p>