Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Show Variant metafield value on frontend.

Show Variant metafield value on frontend.

ankurlighting
Visitor
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 %}
              <tr>
                <th class="attr__label">Length</th>
                <td class="attr__value">
                <p>{{variant.metafields.dimension_details.variant_length}}MM</p>
                </td>
              </tr>
              {% endif %}

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

Replies 0 (0)