pull/4/head
alexanderroese 2024-06-03 22:14:35 +02:00
parent b566222153
commit 4f6055ca77
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@
{%- elsif card_product.compare_at_price > card_product.price and card_product.available -%}
{%- assign discount = card_product.compare_at_price | minus: card_product.price -%}
{%- assign discount_percent = discount | divided_by: card_product.compare_at_price | times: 100 | round -%}
{%- assign discount_percent = discount | divided_by: card_product.compare_at_price | times: 100.0 | round: 2 -%}
<span id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}" class="badge badge--bottom-left color-{{ settings.sale_badge_color_scheme }}">
{{ discount_percent }}% Rabatt
</span>