Liquid, JavaScript, themes, sales channels
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!
Solved! Go to the solution
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
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
It worked like this: {{ product_card_product.metafields.my_fields.text }}
Thank you so much!
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?
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024