{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{# Attribute holen #}
{% set attribut = product.translated.customFields %}
{% block component_product_box_info %}
<div class="product-info">
<div class="product-info-inner">
{% block component_product_box_rating %}
{% if config('core.listing.showReview') %}
<div class="product-rating">
{% if product.ratingAverage %}
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
points: product.ratingAverage,
style: 'text-primary'
} %}
{% endif %}
</div>
{% endif %}
{% endblock %}
{% block component_product_box_name %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
{{ name }}
</a>
{% endblock %}
{% block component_product_box_description %}
<div class="product-description-outer">
<div class="product-description">
{% sw_include '@Storefront/storefront/component/product/card/merkmale.html.twig' with {
"product": product
} %}
</div>
<div class="description-button"><span class="show-description-button">{% sw_icon 'arrow-move-horizontal-axis' %}</span></div>
</div>
</div> {# description inner end #}
{% endblock %}
{% block component_product_box_variant_characteristics %}
{{ parent() }}
{% endblock %}
{% set purchaseUnit = product.purchaseUnit %}
{% set listingPrice = product.calculatedListingPrice %}
{% set fromPrice = listingPrice.from %}
{% set cheapest = product.calculatedCheapestPrice %}
{% set real = product.calculatedPrice %}
{% if product.calculatedPrices.count > 0 %}
{% set real = product.calculatedPrices.last %}
{% endif %}
{% set referencePrice = real.referencePrice %}
{% set displayFrom = product.calculatedPrices.count > 1 %}
{% set price = real %}
{% set isListPrice = price.listPrice.percentage > 0 %}
{% set isRegulationPrice = price.regulationPrice != null %}
{% if product.extensions["groups"].elements[0].options.elements and product.extensions["groups"].elements[0].options.elements|length > 0 %}
{% set variationCount = product.extensions["groups"].elements[0].options.elements|length %}
{% else %}
{% set variationCount = "" %}
{% endif %}
{% if product.cheapestPrice.variantId is not empty %}
{% set varId = product.cheapestPrice.variantId %}
{% else %}
{% set varId = id %}
{% endif %}
{% if cheapest.unitPrice != real.unitPrice %}
<div class="product-cheapest-price {% if isListPrice and price.regulationPrice.price and not displayFrom %} with-list-price{% endif %}{% if isRegulationPrice and displayFrom %} with-regulation-price{% endif %}">
{% if cheapest.unitPrice != real.unitPrice %}
<div class="variation-from-price"><a title="{{ 'detail.cheapestVariationLink'|trans|sw_sanitize }}" href="{{ seoUrl('frontend.detail.page', {'productId': varId}) }}">{%if variationCount is not empty %}{{ variationCount }} {% endif %}{{ "listing.cheapestPriceLabel"|trans|sw_sanitize }}</a> <span class="product-cheapest-price-price"> {{ cheapest.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}</span></div>
{% endif %}
</div>
{% endif %}
</div>
<div class="variants-spacer-block"></div>
<div class="price-action-block">
{% block component_product_box_price %}
{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% endblock %}
{% block component_product_box_action %}
{% sw_include '@Storefront/storefront/component/product/card/action.html.twig' %}
{% endblock %}
</div>
{# product.deliveryTime.translation('name') #}
{% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
{% endblock %}