Omg! I have been at THIS issue for hours! Thank you for the save!
Topic summary
Users are trying to display variant-specific metafields (like finish, dimensions, product care) on Shopify product pages, primarily using Dawn 2.0 and other themes.
Initial Solution:
- Edit
product-template.liquidfile - Insert code like
{{ variant.metafields.global.finish }}within the variant loop - Requires correct namespace and key setup in metafield definitions
Common Problems Reported:
- Dynamic source errors when attempting to add metafields through the theme editor
- Empty values despite correct metafield setup and code syntax
- All variants displaying simultaneously instead of showing only the selected variant’s metafield
- Values not updating when switching variants (requires page reload to see changes)
- Theme compatibility issues (some themes lack
product-template.liquidfile)
Proposed Workarounds:
- Use
{{ product.selected_or_first_available_variant.metafields.custom.mydescription }}in Custom Liquid blocks - Loop through variants with
{% for variant in product.variants %} - Follow external video tutorial and guide (links provided by users 18-20)
Status: The discussion remains open with multiple users seeking solutions for dynamic variant switching without page reloads. Several users report partial success but struggle with real-time updates when variants change.
1 Like