Enterprise Theme Variant Metafields Not Updating

Topic summary

Issue: Variant-level metafields in a Shopify Enterprise theme are not updating when switching variants; the page only pulls data from the first variant. The implementation references current_variant as product.selected_or_first_available_variant and attempts to dynamically populate an element from metafields. A code snippet was mentioned but not provided in detail.

Latest update: A responder requested clearer requirements, examples, or screenshots to understand the exact functionality and reproduction steps.

Key details needed:

  • Exact metafield namespace/key and target element.
  • The full Liquid/markup and where it’s placed (template/section/block).
  • How variant changes are handled in the theme (e.g., any associated scripts or event handlers).

Status: Unresolved and pending additional information from the original poster.

Summarized with AI on December 12. AI used: gpt-5.

We are using enterprise theme trying to dynamically update a element with data pulled from meta fields, However we cannot get the field to update.

It only wants to pull the meta field data from the first variant only. Also current_variant is product.selected_or_first_available_variant

Something Here

I don’t the requirement, can you please explain it more it in detail what Functionality you are looking for exactly, may be examples or screenshots anything for a better understanding.

Best

Shadab