customize the fields displayed per product in the collection.

i am using refresh theme and i want to remove some of the fields displayed per product in the collection.

and add to the product in collection other fields from the product

i found no way to control it from the standard UI.

i am a programmer but not shopify expert
i succeeded to reach the code of the theme.

pls direct me which file or files i should update to achieve what i want

thx

Hello @Doronh ,

You can try to follow these steps:

  • Go to Online Store → Themes → Actions → Edit code
  • Go to Sections folder → collection-template.liquid file
  • Look for the section of code that generates the product fields in the collection. This code may vary depending on your theme, but it typically uses a loop to display each product. You’ll find code similar to:
{% for product in collection.products %}
  
    ### {{ product.title }}
    

{{ product.description }}

    
  

{% endfor %}
  • To remove specific fields, you can simply delete the corresponding lines of code. For example, to remove the product description field, you would remove the line

    {{ product.description }}

    .
  • To add other fields from the product, you’ll need to identify the desired field names and access them using Liquid syntax. For example, if you want to display the product’s vendor, you could add a line like

    Vendor: {{ product.vendor }}

    .

Hope this can help.

Ali Reviews team.

hi

thx for your quick reply which looks so logical to me but i could not find such a loop yet
i will continue to search

thx i send you my question