From ccd31b06404ee7eae440ed0c4749755e4be98e67 Mon Sep 17 00:00:00 2001 From: soulchild Date: Sat, 7 Nov 2026 11:16:28 +0000 Subject: [PATCH] Update snippets/product-info.liquid --- snippets/product-info.liquid | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/snippets/product-info.liquid b/snippets/product-info.liquid index 0b0d096..c6c12b8 100644 --- a/snippets/product-info.liquid +++ b/snippets/product-info.liquid @@ -41,7 +41,7 @@ endif endfor - if active_discount + if active_discount and target.inventory_quantity > 0 assign variant_price = target.metafields.app--168074346497.auto_discounted_price.value | default: target.price if target.metafields.app--168074346497.discount_type.value != nil and target.metafields.app--168074346497.discount_type.value != "fixed" and product.metafields.app--168074346497.discount_percentage.value > 0.01 @@ -103,6 +103,18 @@ {%- endif -%} + + + {{ 'product.general.regular_price' | t }} + + + {%- if settings.currency_code_enabled -%} + {{- variant_compare_at_price | money_with_currency -}} + {%- else -%} + {{- variant_compare_at_price | money -}} + {%- endif -%} + + {%- endif -%} {%- if product.selected_or_first_available_variant.unit_price_measurement -%} @@ -137,7 +149,7 @@ {%- capture savings -%}{{ product.selected_or_first_available_variant.compare_at_price | minus: product.selected_or_first_available_variant.price | money }}{%- endcapture -%} {%- endif -%} - {{ 'collection.product.discount_html' | t: savings: savings }} + {{ 'collection.product.discount_html' | t: savings: savings }} {%- endunless -%} @@ -301,6 +313,7 @@ \ No newline at end of file