Extra HTML tag being injected into Liquid template for product price comparison discount.

Hi, this is a bit of a strange issue that I cannot seem to find the origin of but I’ve uploaded my development theme into a live shop, however, the front-end now displays an extra tag:

Save $156.00

in the label (see image for example).

save-tag.png

Here is the source liquid file:

{%- if settings.show_discount and product.available and product.price < product.compare_at_price -%}
  {%- if settings.discount_mode == 'percentage' -%}
    {%- assign savings = product.compare_at_price | minus: product.price | times: 100.0 | divided_by: product.compare_at_price | round | append: '%' -%}
  {%- else -%}
    {%- capture savings -%}{{ product.compare_at_price | minus: product.price | money }}{%- endcapture -%}
  {%- endif -%}
  
  {{ 'collection.product.discount' | t: savings: savings }}
{%- endif -%}

I believe the value is coming from the product.compare_at_price or the result of subtracting the product.price.

See the live code here: https://www.canodyne.co/collections/relieve

Does anyone have any suggestions or have any info on how I can change the returned value?

Thank you!

Zen

Hey, i have faced the same issue. Let me know if you were able to find the fix for it.

Hi, unfortunately I have not yet found a solution for this issue.