test
parent
b566222153
commit
4f6055ca77
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue