I am assuming that if products exist they automatically belong the ‘featured-collection’ collection as I have read.
I am attempting to list out all the collection handles and I get two: ‘featured-collection’ and ‘homepage’
I used this code to get them:
{% for collection in collections %}
{{ collection.handle }}
{% endfor %}
It works as expected. When I run the following code:
{% for product in collection.frontpage.products %}
This is: {{ product.title }}
{% endfor %}
I get nothing back. I have verified in the store that the collection has one product. I have also tried this with ‘featured-collection’ which should contain six products I created.
I am at a bit of a loss here as this should be simple but I can’t get past this.