Continuing with the Dawn theme rebuild, I’m looking to create variant-specific descriptions natively, and it seems metafields are the solution to this. Following the various instructions I could find, I’ve added the variant metafield definition here:
However, this is clearly incomplete. How do I add the actual metafield data for each variant? I can’t find a field that corresponds to this metafield on the product page, the bulk editor, or even when I export my product list. I’d prefer to add/maintain this information within Shopify, but a free app would work too - I briefly experimented with “Metafield Lite”, “Alterpen”, and “Custom Fields” but didn’t get too far (possibly overlooked something, to be honest).
That aside, do I need to somehow ‘connect’ my Liquid code block to which variant is currently selected by the user, or is the code cited enough for it to only show info relevant to the selected variant?
For some reason, the existing tutorials I could find all focus on product-level metafields rather than variant-level, so I’d appreciate the help!
It’s on the right track, but won’t this populate the same information for all variants of that product? It looks like product-level metafields, whereas I’m looking to add data for variant-level metafields. Essentially, to have different text in there depending on which variant of a given product the user has selected.
Wanting to close the loop on this. The solution to adding data is simple (if not a little hidden). Just have to click into the variant on the edit product page:
I wasn’t able to get this working myself still. I literally used the same line of code as you and created a variant metafield with the same name. It just keeps showing a blank for me
@mpollard@SVNSales Could you please suggest the code to display it in DAWN. I have both single line and rich text that I am wanting to display in custom liquid on product page. But it does not seem to work. I have tried the below:
Is there a way to make dit work on Impact theme? I managed to enter content into the variant metafield, but it doesn’t show up in my published page. Please help.. Thank you