pull/4/head
alexanderroese 2024-06-03 22:16:18 +02:00
parent 6c06ac8c75
commit 0b70aa0703
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@
{%- assign price_float = card_product.price | divided_by: 1.0 -%}
{%- assign discount = compare_at_price_float | minus: price_float -%}
{%- assign discount_percent = discount | divided_by: compare_at_price_float | times: 100.0 -%}
{%- assign discount_percent_rounded = discount_percent | round: 2 -%}
{%- assign discount_percent_rounded = discount_percent | round: 0 -%}
<span id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}" class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">
{{ discount_percent_rounded }}% Rabatt
</span>