Shopify » Dimensions

A Shopify Dimension type allows you to select a unit and a decimal value to go with that unit. Dimension units can be any of in, ft, yd, mm, cm or m. The entered dimension is then available as a JSON structure with unit and value properties, for example:

{% assign dimension = product.metafields.accentuate.dimension.value %}
<p>The dimension is {{ dimension.value }}{{ dimension.unit }}</p>

Referencing .value alone will render the output as "value<space>unit", so this works as well:

<p>The dimension is {{ product.metafields.accentuate.dimension.value }}</p>

Last updated