{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
{% block page_checkout_item_info_image_link %}
{% set isCosts = (not lineItem.good ) %}
{% if isDiscount %}
<div class="cart-item-img cart-item-discount-icon">
{% sw_icon 'marketing' style {
'color': 'success'
} %}
</div>
{% elseif isNested %}
<div class="cart-item-nested-icon">
{% sw_icon 'bag-product' style {
'color': 'light'
} %}
</div>
{% elseif isCosts %}
<div class="cart-item-img">
{% sw_icon 'euro' style {
'color': 'light'
} %}
</div>
{% else %}
<a href="{{ seoUrl('frontend.detail.page', {'productId': lineItem.referencedId}) }}"
class="cart-item-img-link"
title="{{ lineItem.label }}"
{% if controllerAction is same as('confirmPage') %}
data-toggle="modal"
data-modal-class="quickview-modal"
data-url="{{ path('widgets.quickview.minimal', { 'productId': lineItem.referencedId }) }}"
{% endif %}
>
{% block page_checkout_item_info_image_element %}
{% if lineItem.cover.url %}
{% sw_thumbnails 'cart-item-img-thumbnails' with {
media: lineItem.cover,
sizes: {
'default': '100px'
},
attributes: {
'class': 'img-fluid cart-item-img',
'alt': (lineItem.cover.translated.alt ?: ''),
'title': (lineItem.cover.translated.title ?: '')
}
} %}
{% else %}
{% sw_icon 'placeholder' style {
'size': 'fluid'
} %}
{% endif %}
{% endblock %}
</a>
{% endif %}
{% endblock %}