I'm trying to add the most popular products from my client's Shopify store on her home. So I heard what you do is create a collection (I called mine Most Popular) and then use the following code to display the products:
<div class="product span4">
{% assign best = collections["most-popular"] %}
<ul>
{% for product in best limit:10 %}
<li><a href="{{ product.url }}">{{ product.title }}</a></li>
{% endfor %}
</ul>
</div>
Simple, but didn't work. Just got a blank box with nothing in it. Anyone know the proper code for displaying items in my collection?