Check this thread https://community.shopify.com/post/1358267
There is already an event listener to check which variant is active.
Now it only needs to display the content of the Variant Metafield variable instead of a fixed text.
Variant-level metafields cannot be selected as dynamic sources in Online Store 2.0 product templates; only product-level metafields appear. Selecting a specific variant via URL (e.g., ?variant=ID) does not change the dynamic source context, which remains tied to the product object.
Context and reasoning:
Workarounds proposed:
Unresolved points and user needs:
Check this thread https://community.shopify.com/post/1358267
There is already an event listener to check which variant is active.
Now it only needs to display the content of the Variant Metafield variable instead of a fixed text.