title: How to display best seller products on front-page using Shopify
body: <p>I have a dev theme for a shopify store. Basically it's a child theme. I would like to get how to display the best selling products on the front page. I tried something like this but no luck maybe because the sample is outdated. </p>
  
  <pre><code>&lt;div class="row"&gt;
    {% for product in collections["all"].products | limit:12 | sort_by: 'best-seller' %}
      {% include 'product-grid-item' with "all" %}
    {% endfor %}
  &lt;/div&gt;
  </code></pre>
  
  <p>Is there any way we can create something like this? Thanks in advance.</p>