Pull Product Information in Collection Page (Studio Theme)

Hello,

I am wondering how I can pull product information so that I can use it in the collection page. For example, this product is using the product template page called “pre-order”, how can I pull it to the collection page. This is what I have currently.

{% for product in collection.product %}
  {%- if product.template contains 'pre-order' -%}
    ### 
      Pre-Order
    
  {%- endif -%}
{% endfor %}

Alternatively I can use tags, how would that work as well?

Thank you

Hi @macodocious ,

Please change code:

product.template => product.template_suffix

Refer https://shopify.dev/api/liquid/objects/product#product-template_suffix

Hope it helps!