Sale Badge " Gesparten Betrag anzeigen"

Hallo zusammen, ich möchte gerne, das hinter meinem Preis der gesparte Betrag angezeigt wird. Also so etwas wie “- 5€” Ich nutze das Theme Horizon und meine Seite ist : amorabeligo.com

So sollte es aussehen, nur anstatt der Prozente, den Euro Betrag.
Screenshot 2026-02-24 195200

Bisher sieht es so aus :
Screenshot 2026-02-24 195457

Warum ist der Shop auf Englisch wenn der Shop in De ist?

Da sind einige Rechtliche Fehler in diesem Shop.

Das ist der entsprechende Code:

{% if product.compare_at_price > product.price %}
  {% assign discount = product.compare_at_price | minus: product.price %}
  {% assign discount_percent = discount | times: 100 | divided_by: product.compare_at_price | round %}

  <div class="ndl-discount-badge">
    -{{- discount_percent -}}%
  </div>

  <style>
    .ndl-discount-badge {
      display: inline-block;
      background: #d0021b;
      color: #ffffff;
      font-size: 14px;
      font-weight: 600;
      padding: 6px 10px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
  </style>
{% endif %}

Diesen musst du entsprechend einbauen und ggf. etwas stylen.

Go to your store admin > Sales channels > Online store > Themes > click “…” > Edit theme, open snippets/price.liquid file, add this code below to above the last </div>

  {%- if selected_variant.compare_at_price > selected_variant.price -%}
    {%- assign percent = selected_variant.compare_at_price | minus:selected_variant.price | times: 100 | divided_by:selected_variant.compare_at_price | round -%}
    <span style="background-color: red; padding: 4px 12px; color: #fff; margin-left: 8px; border-radius: 5px;">-{{ percent }}%</span>
  {% endif %}


Best regards,
Dan from Ryviu: Product Reviews App

Impressum fehlt nur als Anmerkung

Welche denn? Der Shop ist auf englisch und deutsch verfügbar.

Danke, war die ganze Zeit da, hatte nur die Seite falsch beschriftet.