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?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024