501 votes
0 answers
javascript - show product title in shopify product-template
Solution:
You need to fix your Liquid Syntax. Metafields are a key:value store, namespaced. So in your case:
namespace is: custom (wow, clever!!)
key is: add_product_to_show
So what you really want, is the value now, and that you can get as:
{{ product.metafields.custom.add_product_to_show.value }}
Undefined asked
Source
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.