I’m having an issue with metafields on my product pages. I created a metafield in the product template, but when I add a new product to my webshop, I can’t link anything to it. Even when I manually enter something (for example, the material), it does not appear on the product page.
I’m using the Dawn theme.
Someone compared their theme setup with mine and noticed that a piece of code is missing in my theme files. The metafield for the collection works correctly, but on the product page it does not.
This looks like a part of the theme/template/section/block settings from the .json file.
This is expected to be different between stores/themes depending on configuration settings you’ve chosen.
So no, this is not a “missing” code.
You should share more details about your metafield and theme setting configuration related to the metafield.
Screenshots will help.
Because your comparing SETTINGS, i.e. what configuration they chose to customize for their specific store.
If your sharing settings between stores your product information needs to be setup exactly the same configuration including metafields namespaces and keys.
If using dynamic sources you are actually pointing to the resource you think you are trying to use and not like a different metafield, metaobject that has a similar name or sub property.