{% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
{% block component_product_box %}
{% if product %}
{% set name = product.translated.name %}
{% set id = product.id %}
{% set cover = product.cover.media %}
{% set variation = product.variation %}
{% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
<div class="card product-box box-{{ layout }}">
{% block component_product_box_content %}
<div class="card-body">
{{ block('component_product_box_badges') }}
{{ block('component_product_box_rich_snippets') }}
{% block component_product_box_image %}
<div class="product-image-wrapper">
{# fallback if display mode is not set #}
{% set displayMode = displayMode ?: 'standard' %}
{# set display mode 'cover' for box-image with standard display mode #}
{% if layout == 'image' and displayMode == 'standard' %}
{% set displayMode = 'cover' %}
{% endif %}
{{ block('component_product_box_image_link') }}
{% if context.customer and config('core.cart.wishlistEnabled') %}
{% block component_product_box_wishlist_action %}
{% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
appearance: 'circle',
productId: id
} %}
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_info %}
<div class="product-info">
{% block component_product_box_availability %} {# changed block #}
<div class="product-availability d-flex justify-content-between">
<div>
{% if product.customFields.migration_ShopwarewithAPI_product_produkt_ve %}
{{ 'listing.pu'|trans|sw_sanitize }}:
{{ product.customFields.migration_ShopwarewithAPI_product_produkt_ve }}
{% endif %}
</div>
{% if product.availableStock > 0 %}
<div>
{{ 'listing.available'|trans|sw_sanitize }}
</div>
{% endif %}
</div>
{% endblock %}
{% block component_product_box_rating %}
{% if config('core.listing.showReview') %}
{% if product.ratingAverage %}
<div class="product-rating">
{% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
points: product.ratingAverage,
style: 'text-primary'
} %}
</div>
{% endif %}
{% endif %}
{% endblock %}
{{ block('component_product_box_name') }}
{{ block('component_product_box_variant_characteristics') }}
{{ block('component_product_box_description') }}
{{ block('component_product_box_price') }}
{% block element_buy_box_properties %}
<div class="element-buy-box-properties-container">
{% set group = product.sortedProperties %}
{% sw_include '@Storefront/storefront/component/product/teaser-properties.html.twig' with {
group: product.sortedProperties
} %}
</div>
{% endblock %}
{# dump(page.extensions) #}
{{ block('component_product_box_action') }}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endif %}
{% endblock %}