Skip to main content

measurement

Measurement from one of the following metafield types:

  • dimension
  • volume
  • weight
PropertiesTypeDescription
unitstringThe measurement unit.
valuenumberThe measurement value.
Object
{
"unit": "MILLIMETERS",
"value": 98.2
}

This object is returned by a weight, volume, or dimension metafield. Access it through the metafield's value:

Code
{{ product.metafields.custom.net_weight.value.value }} {{ product.metafields.custom.net_weight.value.unit }}
Output
20 KILOGRAMS