Overview

Number is a simple field that allows you to store and show numeric values. This field can use decimals as value.

Use cases

It can be used in many ways - from showing simple product attributes, for example: width, height, weight, etc., to more complex use cases like controlling a variable value in your own scripts. Use this field if you need to store decimal values.

Setup

Min value - Minimal value that can be stored
Max value - Maximum value that can be stored, If 0 is used there is no limit.

Example usage

{% assign width = product.metafields.airf.width %}

{% if width and width != '&nbsp' %}

    Product width: {{ width }}

{% endif %}