diff --git a/snippets/product-card.liquid b/snippets/product-card.liquid new file mode 100644 index 0000000..b60b121 --- /dev/null +++ b/snippets/product-card.liquid @@ -0,0 +1,7 @@ +{% 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 +
\ No newline at end of file