{% comment %} Renders a list of product's price (regular, sale, unit) Accompanies product forms and meant to be updated dynamically Accepts: - variant: {Object} Variant Liquid object (optional) - product: {Object} Product Liquid object (optional) - show_vendor: {Boolean} Show the product's vendor depending on the section setting (optional) Usage: {% render 'product-price', variant: current_variant, product: product %} {% endcomment %} {%- liquid if variant.title assign compare_at_price = variant.compare_at_price assign price = variant.price assign available = variant.available else assign compare_at_price = 1999 assign price = 1999 assign available = true endif comment start Yagi app code endcomment if variant.title assign price = variant.price assign compare_at_price = variant.compare_at_price assign price = variant.metafields.app--168074346497.auto_discounted_price.value | default: variant.price if price < variant.price and compare_at_price == 0 or compare_at_price == blank assign compare_at_price = variant.price endif endif comment end Yagi app code endcomment if settings.currency_code_enable assign money_price = price | money_with_currency else assign money_price = price | money endif -%}