I am trying to print product attributes like Brand, collection etc in the product detail page for which I have created a metaobject where I am storing the product attribute id’s.
And in the Liquid level to print the values, I am accessing metafields which has same name similar to metaobject entry. For example : metafield I named it as fabric and in the metaobject also I am using same name
Kindly let me know what is incorrect here as I am able to access only attribute title from metaobject but not the metafields value
Below is the code for
{% for metaob in shop.metaobjects.product_feature_attributes.values %}
{% assign metaobj = product.metafields.custom %} ---for getting the custom metafields
{% assign met = metaob.attribute_id %} -- to get the attribute id
{{ met }} --- Display title(Eg Fabric)
{{ metaobj.met }} -- Display metafield value (Eg Leather)
{% endfor %}