{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box %}
{% if product and not product.variantion %}
{% set productTitle = getDataViaRepository({'repository': 'property_group_option',
'filter': [{'type': 'equalsAny', 'field': 'id', 'value': product.propertyIds},
{'type': 'equals', 'field': 'group.translations.name', 'value': 'Teilart'}],
'association': ['group.translation']}, context.context) %}
{% endif %}
{{ parent() }}
{% endblock %}
{% block component_product_box_badges %}
{{ parent() }}
<span class="product-variant-documenttype">
{% if product.variation %}
{% for variation in product.variation|slice(0, 1) %}
{{ variation.option }}
{% endfor %}
{% else %}
{% if productTitle %}
{{ productTitle|first.name }}
{% endif %}
{% endif %}
</span>
{% if config('core.cart.wishlistEnabled') %}
{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
appearance: 'circle',
productId: id
} %}
{% endif %}
{% endblock %}
{% block component_product_box_variant_characteristics %}
<div class="artNo">{{ "detail.productNumberLabel"|trans|sw_sanitize }} {{ product.productNumber }}</div>
{% if product.customFields.loyxx_seminar_group_location %}
<div class="customFields-wrapper">
<span class="customFieldTitle">{{ "customFields.loyxx_seminar_group_location"|trans|sw_sanitize }}:</span> <span class="customFieldLocation">{{product.customFields.loyxx_seminar_group_location|trans|sw_sanitize}}</span>
</div>
{% endif %}
{% if product.variation or product.options.elements %}
<div class="product-variant-characteristics">
<div class="product-variant-characteristics-text">
{% if product.variation %}
{% for variation in product.variation|slice(1) %}
<div>
{{ variation.group }}:
<span class="product-variant-characteristics-option">
{{ variation.option }}
</span>
</div>
{% endfor %}
{% else %}
{% for option in product.options %}
{% endfor %}
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}
{% block component_product_box_description %}
{% endblock %}
{% block component_product_box_wishlist_action %}
{% endblock %}