{% assign yagi_discount_percentage = '"discount_percentage": 0' %} {% if product.metafields.app--168074346497.discount_percentage.value > 0.01 %} {% capture yagi_discount_percentage %}"discount_percentage": {{ product.metafields.app--168074346497.discount_percentage.value }}{% endcapture %} {% endif %} // ... find the line below, then paste above, and add yagi_discount_percentage into data-json-product below