Solved

Add meta fields to collection items

Daniel19901
Shopify Partner
131 0 15

Hi, I would like to add this metafield to 2 sections of collection grids on my website. Can anyone help me with the code ?

 

thank you in advance 

Meta: 
product.metafields.custom.sub_header

Link: https://ynco-ny.com/

Daniel19901_0-1716359877258.png

 

Accepted Solution (1)

LuffyOnePiece
Shopify Partner
597 86 102

This is an accepted solution.

Hi @Daniel19901 ,

 

You need to add the below code in the product grid.

{{ product.metafields.custom.sub_header.value }}

 

Thank you

 

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184

View solution in original post

Reply 1 (1)

LuffyOnePiece
Shopify Partner
597 86 102

This is an accepted solution.

Hi @Daniel19901 ,

 

You need to add the below code in the product grid.

{{ product.metafields.custom.sub_header.value }}

 

Thank you

 

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184