Solved

Dawn theme - metafields not showing up

Simonas1
Tourist
4 0 3

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:

Simonas1_0-1630656515578.png


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

Simonas1_1-1630656515575.png

 

However, it's showing up in product page's recommendation section "You may also like":

Simonas1_2-1630656515581.png

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!

Accepted Solution (1)

PaulNewton
Shopify Partner
6274 573 1318

This is an accepted solution.

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 }}

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 4 (4)

PaulNewton
Shopify Partner
6274 573 1318

This is an accepted solution.

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 }}

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Simonas1
Tourist
4 0 3

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

MVUILL
Explorer
66 0 17

Thank you so much!

EDITA1
New Member
9 0 0

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?