How do I go about displaying the value of one of these metafields on the product page itself? I’ve tried doing a Google search and only get results related to custom metafields made using an app.
@bo6 I was having this happen too. I found out it’s because unless your metafield is a simple type like integer or string, you need to output the “value” of the metafield.
eg my “width” metafield is of type dimension. If you export the product you’ll see it’s stored as {“value”:56,“unit”:“cm”}
So this line:
Width: {{ product.metafields.custom.width }}
will display as:
Width: {“value”:56,“unit”:“cm”}
To output the values in the metafield, you need to add .value to the end of the metafield
I wonder if you can help me too please?
I have been searching everywhere and asking everyoe and I can not figure this out! Nothing anyone says works for me!
I am using craft theme and I have created my metafields.. I have a post here but still nothing works..