{% 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 MoorlProductPromoActive = getPluginStateByName('MoorlProductPromo', context.context) %}
<div class="card product-box box-{{ layout }} {% if MoorlProductPromoActive and config('MoorlProductPromo.config.inListing') and product.extensions.MoorlProductPromo %} promo-image-class {% endif %}">
{% block component_product_box_content %}
<div class="card-body">
{% block component_product_box_badges %}
{% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' %}
{% endblock %}
{% block component_product_box_rich_snippets %}
{% sw_include '@Storefront/storefront/component/product/card/meta.html.twig' %}
{% endblock %}
{% block component_product_box_image %}
{% if not sizes is defined %}
{% set sizes = {
'default' : '200px'
} %}
{% endif %}
<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 %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
title="{{ name }}"
class="product-image-link is-{{ displayMode }}">
{% if cover.url %}
{% set attributes = {
'class': 'product-image is-'~displayMode,
'alt': (cover.translated.alt ?: name),
'title': (cover.translated.title ?: name)
} %}
{% if displayMode == 'cover' or displayMode == 'contain' %}
{% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
{% endif %}
{% if load == 'lazy' %}
{% set attributes = attributes|merge({ 'loading': 'lazy' }) %}
{% endif %}
{% sw_thumbnails 'product-image-thumbnails' with {
media: cover,
sizes: sizes,
load: load
} %}
{% else %}
<div class="product-image-placeholder">
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
</div>
{% endif %}
</a>
{% if shopware.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">
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="product-name"
title="{{ name }}">
{{ name }}
</a>
{% if product.translated.customFields.asus_product_marketing_name_1|trim != "" %}
<div class="product-detail-name-subhead category-detail-subhead">{{ product.translated.customFields.asus_product_marketing_name_1|raw }}</div>
{% endif %}
{% block component_product_box_rating %}
{{ parent() }}
{% if page.header.activeLanguage.translationCode.code == "de-DE" or app.request.locale == "de-DE" %}
<!-- TrustBox widget - Product Mini -->
<div class="trustpilot-widget" data-locale="de-DE" data-template-id="54d39695764ea907c0f34825"
data-businessunit-id="5dea2794a525f00001f5bc2e" data-style-height="24px" data-style-width="100%"
data-theme="light" data-sku="{{ product.translated.customFields.onedot_asus_product_plenty_variation_id }}" data-star-color="#f8b704" data-text-color="#808080">
<a href="https://de.trustpilot.com/review/webshop.asus.com" target="_blank"
rel="noopener">Trustpilot</a>
</div>
<!-- End TrustBox widget -->
{% endif %}
{% endblock %}
{% block component_product_box_price %}
{% sw_include '@Storefront/storefront/component/product/card/price-unit.html.twig' %}
{% endblock %}
{% if MoorlProductPromoActive %}
{% if config('MoorlProductPromo.config.inListing') and product.extensions.MoorlProductPromo %}
{% sw_include '@Storefront/plugin/moorl-product-promo/summary-box.html.twig' with {
productPromo: product.extensions.MoorlProductPromo
} %}
{% endif %}
{% endif %}
{% block component_product_box_variant_characteristics %}
<div class="product-variant-characteristics">
{% if product.parentId is not same as(null) %}
{% sw_include '@Storefront/storefront/component/product/card/listing-configurator.html.twig' ignore missing %}
{% endif %}
</div>
{% endblock %}
{% block component_product_box_description %}
{% if product.translated.customFields.onedot_asus_product_highlight %}
<div class="product-highlight">
{# {{ product.translated.customFields.onedot_asus_product_highlight|raw }} #}
</div>
{% endif %}
{% endblock %}
{% if page.header.activeLanguage.translationCode.code == "de-DE" or app.request.locale == "de-DE" %}
{% block component_product_box_usp %}
{% if product.translated.customFields.plentymarkets_bulletpoints|raw and product.translated.customFields.plentymarkets_bulletpoints|raw != ' ' and product.translated.customFields.plentymarkets_bulletpoints|raw != ' ' %}
<div class="product-highlight">
{# {{ product.translated.customFields.plentymarkets_bulletpoints|raw }} #}
</div>
{% endif %}
{% endblock %}
{% endif %}
{% block component_product_box_action %}
{% set isAvailable = product.availableStock > 0 %}
{% set displayFrom = product.calculatedPrices.count > 1 %}
{% set displayBuyButton = isAvailable %}
<div class="d-flex">
<div class="text-nowrap product-availability-text" style={% if displayBuyButton and config('core.listing.allowBuyInListing') %} "color: #018a01;" {% else %} "color: #8a6100;" {% endif %} >
{% if displayBuyButton and config('core.listing.allowBuyInListing') %}
{{ "listing.boxProductInStock"|trans|sw_sanitize }}
{% else %}
{{ "listing.boxProductNotInStock"|trans|sw_sanitize }}
{% endif %}
</div>
<a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
class="btn btn-block btn-link"
title="{{ "listing.boxProductDetails"|trans|striptags }}">
{{ "listing.boxProductDetails"|trans|sw_sanitize }}
{% sw_icon 'atoms-arrow-medium-right' style {'pack':'default', 'size': 'xs'} %}
</a>
</div>
{{ parent() }}
{% endblock %}
</div>
{% endblock %}
</div>
{% endblock %}
</div>
{% endif %}
{% endblock %}