{# @deprecated tag:v6.5.0 - Template `order-detail-list-item.html.twig` is deprecated. Use `storefront/component/line-item/line-item.html.twig` instead. #}
{% block page_account_order_item_detail_list_item %}
{% set PROMOTION_LINE_ITEM_TYPE = constant('Shopware\\Core\\Checkout\\Cart\\LineItem\\LineItem::PROMOTION_LINE_ITEM_TYPE') %}
{% set isDiscount = (not lineItem.good and lineItem.price.totalPrice <= 0) %}
{% set isNested = lineItem.children.count > 0 %}
{% set childrenTemplate = '@Storefront/storefront/page/account/order-history/order-detail-list-item-children.html.twig' %}
{# @deprecated tag:v6.5.0 - var will be removed - use 'childrenTemplate' instead #}
{% set childTemplate = '@Storefront/storefront/page/account/order-history/order-detail-list-item.html.twig' %}
{# @deprecated tag:v6.5.0 - var will be removed with no replacement #}
{% set cartItemClasses = '' %}
{% block page_account_order_item_detail_list_item_container %}
<div class="order-item-detail-list-item order-detail-item-{{ lineItem.type }}{% if isDiscount %} is-discount{% endif %} {{ cartItemClasses }}">
<div class="row order-detail-content-row">
{% block page_account_order_item_detail_image %}
<div class="col-12 col-md-2 order-item order-item-image">
{% block page_account_order_item_detail_image_value %}
<div class="order-item-product-image">
{% if isDiscount %}
<div class="order-item-img order-item-discount-icon">
{% sw_icon 'marketing' style {
'color': 'success'
} %}
</div>
{% elseif isNested %}
<div class="order-item-nested-icon">
{% sw_icon 'bag-product' style {
'color': 'light'
} %}
</div>
{% else %}
{% set url = lineItem.referencedId ? seoUrl('frontend.detail.page', {'productId': lineItem.referencedId }) : '#not-found' %}
<a href="{{ url }}"
class="product-image-link"
title="{{ lineItem.label }}">
{% block page_checkout_item_info_image_element %}
{% if lineItem.cover %}
{% sw_thumbnails 'cart-item-img-thumbnails' with {
media: lineItem.cover,
sizes: {
'default': '100px'
},
attributes: {
'class': 'img-fluid order-item-img',
'alt': (lineItem.cover.translated.alt ?: ''),
'title': (lineItem.cover.translated.title ?: '')
}
} %}
{% else %}
<div class="product-image-placeholder">
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
</div>
{% endif %}
{% endblock %}
</a>
{% endif %}
</div>
{% endblock %}
</div>
{% endblock %}
{% block page_account_order_item_detail_name %}
<div class="col-12 col-md-4 order-item order-item-name">
{% block page_account_order_item_detail_name_value %}
{% if isDiscount %}
<strong class="name-value">
{{ lineItem.label }}
</strong>
{% else %}
{% set url = lineItem.referencedId ? seoUrl('frontend.detail.page', {'productId': lineItem.referencedId }) : '#not-found' %}
<a href="{{ url }}"
class="order-item-product-name"
title="{{ lineItem.label }}"> <strong class="name-value">
{{ lineItem.label }}
</strong> </a>
{% endif %}
{% endblock %}
{% block page_account_order_item_detail_variants %}
{% if lineItem.payload.options|length >= 1 %}
<div class="order-item-variants">
{% for option in lineItem.payload.options %}
{% if option.option %}
<div class="order-item-variants-properties">
<div class="order-item-variants-properties-name">{{ option.group }}:</div>
<div class="order-item-variants-properties-value">{{ option.option }}</div>
</div>
{% else %}
<div class="order-item-variants-properties">
<div class="order-item-variants-properties-name">{{ option.group.translated.name }}:</div>
<div class="order-item-variants-properties-value">{{ option.translated.name }}</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endblock %}
{% block page_account_order_item_detail_unitprice %}
{% set referencePrice = lineItem.price.referencePrice %}
{% if referencePrice.purchaseUnit %}
<div class="order-price-unit">
{% block page_account_order_item_detail_purchaseunit %}
<div class="order-price-purchase">
{% block page_account_order_item_detail_purchaseunit_label %}
<span class="order-price-purchase-label">
{{ "account.orderItemInfoContent"|trans|sw_sanitize }}
</span>
{% endblock %}
{% block page_account_order_item_detail_purchaseunit_content %}
<span class="order-price-purchase-content">
{{ referencePrice.purchaseUnit }} {{ referencePrice.unitName }}
</span>
{% endblock %}
</div>
{% endblock %}
{% block page_account_order_item_detail_referenceunit %}
{% if referencePrice.referenceUnit is not null %}
<div class="order-price-reference">
{% block page_account_order_item_detail_referenceunit_content %}
<span class="order-price-reference-content">
({{ referencePrice.price|currency(order.currency.isoCode) }}{{ "general.star"|trans|sw_sanitize }} / {{ referencePrice.referenceUnit }} {{ referencePrice.unitName }})
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block page_account_order_item_detail_quantity %}
<div class="col-12 col-md-2 order-item order-item-quantity">
{% if not isChild %}
{% block page_account_order_item_detail_quantity_label %}
<strong class="order-item-label order-item-quantity-label">
{{ "account.orderItemColumnQuantity"|trans|sw_sanitize }}{{ "account.colonCharacter"|trans|sw_sanitize }}
</strong>
{% endblock %}
{% block page_account_order_item_detail_quantity_value %}
<span class="order-item-value order-item-quantity-value">
{{ lineItem.quantity }}
</span>
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% block page_account_order_item_detail_price %}
<div class="col-12 col-md-2 order-item order-item-price">
{% if not isDiscount %}
{% block page_account_order_item_detail_price_label %}
<strong class="order-item-label order-item-price-label">
{{ "account.orderItemColumnPrice"|trans|sw_sanitize }}{{ "account.colonCharacter"|trans|sw_sanitize }}
</strong>
{% endblock %}
{% block page_account_order_item_detail_price_value %}
<span class="order-item-value order-item-price-value">
{% if lineItem.type == PROMOTION_LINE_ITEM_TYPE %}
/
{% else %}
{{ lineItem.unitPrice|currency(order.currency.isoCode) }}{{ "general.star"|trans|sw_sanitize }}
{% endif %}
</span>
{% endblock %}
{% endif %}
</div>
{% endblock %}
{% block page_account_order_item_detail_total %}
<div class="col-12 col-md-2 order-item order-item-total">
{% block page_account_order_item_detail_total_label %}
<strong class="order-item-label order-item-total-label">
{{ "account.orderItemColumnTotal"|trans|sw_sanitize }}{{ "account.colonCharacter"|trans|sw_sanitize }}
</strong>
{% endblock %}
{% block page_account_order_item_detail_total_value %}
<span class="order-item-value order-item-total-value">
{{ lineItem.totalPrice|currency(order.currency.isoCode) }}{{ "general.star"|trans|sw_sanitize }}
</span>
{% endblock %}
</div>
{% endblock %}
</div>
{% block page_account_order_item_downloads_table %}
<div class="order-detail-content-list">
{% sw_include '@Storefront/storefront/component/line-item/element/downloads.html.twig' %}
</div>
{% endblock %}
{% block page_account_order_item_detail_children_template %}
{% if isNested %}
{# @deprecated tag:v6.5.0 - `page_account_order_item_detail_list_item_children` will be moved to `@Storefront/storefront/page/account/order-history/order-detail-list-item-children.html.twig` #}
{% block page_account_order_item_detail_list_item_children %}
{% sw_include childrenTemplate %}
{% endblock %}
{% endif %}
{% endblock %}
{% block page_account_order_item_detail_list_item_divider %}
<div class="order-item-detail-list-item-divider"></div>
{% endblock %}
</div>
{% endblock %}
{# @deprecated tag:v6.5.0 - block will be removed #}
{% block page_account_order_item_detail_list_item_child %}{% endblock %}
{% endblock %}