Shopify » Decimal

A Shopify Decimal works similar to the ACF type Number, allowing for input of a number with decimals. The value property returns a numeric value directly, allowing you to do numeric comparisons directly:

{% assign rrp = product.metafields.accentuate.rrp_price.value %}
{% if rrp > 100 %}
    <p>RRP is {{ rrp }}</p>
{% endif %}

Last updated