title: How do I loop through all the products of a store using Liquid (Shopify)?
body: <p>I can't. I know. </p>
  
  <p>Shopify imposes a limit when it comes to the number of products one can loop through on a page.</p>
  
  <p>The current limit is 50.</p>
  
  <p>Actually, <strong>this is not true</strong>. </p>
  
  <p>One can loop through all the products of a store using liquid : </p>
  
  <pre><code>{% paginate collections["all-products"].products by 10000 %}
  
    {% for product in collections["all-products"].products %}
  
       {% comment %}looping through all 10000 products{% endcomment %}
  
    {% endfor %}
  
  {% endpaginate %}
  </code></pre>
  
  <p>In the above example, if a store has up to 10000 products I can loop through all 10000 of them. Increasing that <em>pagination</em> number will increase the number of products I can loop through accordingly.</p>
  
  <p>What I want to know is whether Shopify will continue to support this (even though they don't like it) and therefore, whether I can build stores using the above without the risk of the <code>{% paginate collections["all-products"].products by 9999999 %}</code> becoming deprecated at some point.</p>
  
  <p>Having said that, I would obviously never loop through 10000 products, let alone 9999999 of them. But I definitely want to build stores where I will be looping through more that 500 products in one go for example.</p>