Ziadm
1
Hey everyone,
I’m attempting to link a rich text description metafield to a variant within a product.
I’ve searched on Google and watched some YouTube videos, and it seems like I need to use code with a custom liquid section on the product template.
I have attempted several codes and modified the namespace to one I have created, but none worked.
Why has Shopify made this integration so difficult. 
Can you please explain in detail what exactly you want to achieve. Also it would be very helpful if you shared your store’s URL with us.
In some settings you can use liquid directlly in the setting as that’s how dynamic sources are actually wired up.
i.e. {{ product.selected_or_first_available_variant.price }}
Because the logic is kinda backwards so it’s almost nonsensical: “link a rich text description metafield to a variant within a product”
variants exist as a resource > metafield of the rich-text type created for variants <> a variant is created so automatically gets variant metafields.
Products objects are tangential to variants having metafields; as resources.
“within a product” if by that you mean something like using a dynamic source in a product template only product level sources are inferred.
Because in the theme editor you are within a product template you are not within a variant template as their is currently no such thing.
https://shopify.dev/docs/storefronts/themes/architecture/settings/dynamic-sources#available-values
Ziadm
4
Hello,
I have created a variant type metafield
[image: image.png]
Then I linked the metafield to the variant on the product page
[image: image.png]
and I want to add a different description for each variant when changing
the variants at the top
[image: image.png]