test
parent
6c06ac8c75
commit
0b70aa0703
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue