Show Variant metafield value on frontend.

2 0 0

Hi, I am trying to show variant metafield value on frontend. I used following code to show it 

              {% if variant.metafields.dimension_details.variant_length != blank %}
                <th class="attr__label">Length</th>
                <td class="attr__value">
              {% endif %}

I have already added the values in metafield. But on frontend, metafield value is not showing. 

Replies 0 (0)