{#
# Project: www.betten-abc.de
# Company: arboro GmbH
# Created by: Daniel Geike
# Created on: 05.07.22
# Description:
#}
{% sw_extends "@Storefront/storefront/page/product-detail/buy-widget-price.html.twig" %}
{% block page_product_detail_was_price_badge %}
{% endblock %}
{% block page_product_detail_price_unit %}
{% if page.product.purchaseUnit > 1 %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block page_product_detail_was_price_wrapper %}
<span class="product-detail-list-price-wrapper">
{% if beforeListPriceSnippetExists %}{{ "listing.beforeListPrice"|trans|trim }}{% endif %}
<span{% if not (afterListPriceSnippetExists or beforeListPriceSnippetExists) %} class="list-price-price"{% endif %}>{{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}</span>
{% if afterListPriceSnippetExists %}
{{ "listing.afterListPrice"|trans|trim }}
{% endif %}
</span>
{% endblock %}