I have a metaobject called beekeeper, which has 4 fields - name, location, profile_image, total_hives. This metaobject is linked to a product via metafield called hive.beekeeper
The issue is that I cannot display meta values. The closes I got was with {{ card_product.metafields.hive.beekeeper }}, where I at least got gid://shopify/Metaobject/72501821775 in response.
I need to display name value. Dawn Theme. Please help
Also, I did make a little bit of progress by using this bit:
{% for beekeeper in shop.metaobjects.beekeeper.values %}
{{ beekeeper.name.value }}
{{ beekeeper.location.value }}
Total Hives: {{ beekeeper.total_hives.value }}
{% endfor %}
But of course it iterates and displays all entries, whereas I simply cannot figure out how to better write IF statement to display only entry assigned to the current product (it`s to be displayed on a product card within collection, not on a product page).
This is what I`m trying to achieve: every hive is assigned with beekeeper, and I want to display a small icon of a beekeepers profile picture. At the moment, since the loop iterates through all entries, you can only see the latest one, but I need something to define “if this product is assigned with this entry from metafield, then display this info”