{% sw_extends '@Storefront/storefront/page/product-detail/description.html.twig' %}
{% block page_product_detail_description_container %}
{{ parent() }}
<div class="further-description">
<div class="description-eigenschaften">
{% for group in page.product.sortedProperties %}
{% if (group.translated.name == "Alkoholgehalt") %}
<div class="properties-row">
<strong class="properties-label">{{ group.translated.name|e }}:</strong>
<span class="properties-value">
{% apply spaceless %}
{% for option in group.options %}
{% set i = ( i | default(0) ) + 1 %}
<span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
{% endfor %}
{% endapply %}
</span>
</div>
{% endif %}
{% endfor %}
{% for group in page.product.sortedProperties %}
{% if (group.translated.name == "Herkunftsland") %}
<div class="properties-row">
<strong class="properties-label">{{ group.translated.name|e }}:</strong>
<span class="properties-value">
{% apply spaceless %}
{% for option in group.options %}
{% set i = ( i | default(0) ) + 1 %}
<span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
{% endfor %}
{% endapply %}
</span>
</div>
{% endif %}
{% endfor %}
{% for group in page.product.sortedProperties %}
{% if (group.translated.name == "Ursprungsland")%}
<div class="properties-row">
<strong class="properties-label">{{ group.translated.name|e }}:</strong>
<span class="properties-value">
{% apply spaceless %}
{% for option in group.options %}
{% set i = ( i | default(0) ) + 1 %}
<span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
{% endfor %}
{% endapply %}
</span>
</div>
{% endif %}
{% endfor %}
{% for group in page.product.sortedProperties %}
{% if (group.translated.name == "Lagerung") %}
<div class="properties-row">
<strong class="properties-label">{{ group.translated.name|e }}:</strong>
<span class="properties-value">
{% apply spaceless %}
{% for option in group.options %}
{% set i = ( i | default(0) ) + 1 %}
<span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
{% endfor %}
{% endapply %}
</span>
</div>
{% endif %}
{% endfor %}
<div class="properties-row">
<strong class="properties-label">Pfand:</strong>
<span class="properties-value">
{% if page.product.hasRefund.name %}{{ "refundsystem.general.exclusive"|trans|striptags }} {{ page.product.hasRefund.calculated_price|currency }} {{ "refundsystem.general.refund"|trans|striptags }} {% else %}nein{% endif %}
</span>
</div>
</div>
{% for group in page.product.sortedProperties %}
{% if (group.translated.name == "Bio") %}
{% set bio = true %}
{% endif %}
{% endfor %}
{% if page.product.manufacturer or page.product.customFields.custom_oekokontrollstelle_ %}
<div class="description-manufacturer">
{% if page.product.manufacturer %}
<div class="properties-row">
<strong>Hersteller:</strong>
<span>{{ page.product.manufacturer.translated.name }}<br/>{{ page.product.manufacturer.translated.description|raw }}</span>
</div>
{% endif %}
{% if page.product.customFields.custom_oekokontrollstelle_ %}
<div class="properties-row bio-row">
<strong class="properties-label">{{ "wlcustom.oekokontrollstelle"|trans }}:</strong>
<span class="properties-value">
{% apply spaceless %}
{{ page.product.customFields.custom_oekokontrollstelle_ }}
{% endapply %}
</span>
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_description_content_text %}
{{ parent() }}
{% if page.product.customFields.custom_zutaten_ %}
<div class="zutaten">
<p><strong>Zutaten:</strong></p>
<p>{{ page.product.customFields.custom_zutaten_ }}</p>
</div>
{% endif %}
{% if page.product.customFields.custom_alergene_ %}
<div class="zutaten">
<p><strong>Allergene:</strong></p>
<p><strong>{{ page.product.customFields.custom_alergene_ }}</strong></p>
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_description_title %}
<div class="h3 product-detail-description-title">
{{ "detail.descriptionTitle"|trans|sw_sanitize }} {{ page.product.translated.name }}
</div>
{% endblock %}