Why aren't metafields displaying in Dawn theme product grid view?

Hello everyone,

I use the new shopify 2.0 theme “Dawn” and created custom metafield using shopify built in metafields app. I want it to be displayed under main title of every product in grid view, so I placed metafield in product-card.liquid:

Metafield is not showing up on main page and collection page:

However, it’s showing up in product page’s recommendation section “You may also like”:

It seems that there’s an issue with displaying metafields in this new theme. I did this in Debut theme using the exact same code and it works perfectly there.

Let me know if anyone knows a solution to this issue, thanks!

1 Like

Are you sure “product” is the product you think it is?

Try matching the surrounding codes context and conventions

{{ products_card_product.metafields.my_fields.text }}

3 Likes

It worked like this: {{ product_card_product.metafields.my_fields.text }}
Thank you so much!

2 Likes

Thank you so much!

Hi, I’m trying to do the same, but I can’t understand how to set the right metafields in order to make them appear under the products title. Could you show me the previous passages?