From 20bdf9d30dd08dbb8b83a41c19279488f72f14e8 Mon Sep 17 00:00:00 2001 From: soulchild Date: Fri, 10 Jul 2026 08:58:13 +0000 Subject: [PATCH] Use discounted price for JSON+LD structured data for product Use discounted price for JSON+LD structured data for product --- sections/main-product.liquid | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sections/main-product.liquid b/sections/main-product.liquid index d5c75d5..eabfe25 100644 --- a/sections/main-product.liquid +++ b/sections/main-product.liquid @@ -746,8 +746,17 @@ endif -%} + + {% liquid + assign original_product_price_format = product.selected_or_first_available_variant.price | money_without_currency + assign discounted_product_price = product.selected_or_first_available_variant.metafields.app--168074346497.auto_discounted_price.value | default: product.selected_or_first_available_variant.price + assign discounted_product_price_format = discounted_product_price | money_without_currency + + assign search_original_string = '"price":"' | append: original_product_price_format | append: '"' + assign search_replace_string = '"price":"' | append: discounted_product_price_format | append: '"' + %} -- 2.54.0