Shopify » Volume
A Shopify Volume type allows you to select a unit and a decimal value to go with that unit. Volume units can be any of ml, cl, l, m3 (cubic meters), us_fl_oz, us_pt, us_qt, us_gal, imp_fl_oz, imp_pt, imp_qt or imp_gal. The entered volume is then available as a JSON structure with unit and value properties, for example:
Referencing .value alone will render the output as "value<space>unit", so this works as well:
Last updated