{% for collection in collections %} (Loops through collections, so every collection you have, probably "tables", "chairs" as you said. This just gives us those 'objects', doesn't yet print out anything.)

{{ collection.title }}

(Now that we're in the loop, we're handling one of those collections. This will print out the title of that collection. So if the first collections is called "tables", this will print out "tables". (as a

header...)) {% for product in collection.products %} (Now we're still inside the collection loop, and we're looping through each product... Again, this is just logic, giving us the possiblity to say 'product' and access the product we currently have.)

{{ product.title }}

(So now we're at the product level, as we loop through collections and products in each collection, this will print out the title of the product)

{{ product.description }}

(then print out the description for the product) {% endfor %} (here we end the product loop) {% endfor %} (here we end the collection loop)

Bombastic Cafe Product Catalog

Coffee

      {% for collection in collections %} {% if collection.handle contains 'collection' %} {% tablerow product in collection.products cols: 4 %}
{{ product.featured_image.alt | escape }} {{ product.title }} {{ product.price | money }}
      {% endtablerow %}
    {% endif %} {% endfor %}
Back to Top

Brewers

      {% for collection in collections %} {% if collection.handle contains 'brewers' %} {% tablerow product in collection.products cols: 4 %}
{{ product.featured_image.alt | escape }} {{ product.title }} {{ product.price | money }}
      {% endtablerow %}
    {% endif %} {% endfor %}
Back to Top