custom/plugins/fourtwosixpaymentsurcharge/src/Resources/views/storefront/page/checkout/checkout-item.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  2. {% block page_checkout_item_info_image_link %}
  3.     {% set isCosts = (not lineItem.good ) %}
  4.     {% if isDiscount %}
  5.         <div class="cart-item-img cart-item-discount-icon">
  6.             {% sw_icon 'marketing' style {
  7.                 'color': 'success'
  8.             } %}
  9.         </div>
  10.     {% elseif isNested %}
  11.         <div class="cart-item-nested-icon">
  12.             {% sw_icon 'bag-product' style {
  13.                 'color': 'light'
  14.             } %}
  15.         </div>
  16.     {% elseif isCosts %}
  17.         <div class="cart-item-img">
  18.             {% sw_icon 'euro' style {
  19.                 'color': 'light'
  20.             } %}
  21.         </div>
  22.     {% else %}
  23.         <a href="{{ seoUrl('frontend.detail.page', {'productId': lineItem.referencedId}) }}"
  24.            class="cart-item-img-link"
  25.            title="{{ lineItem.label }}"
  26.             {% if controllerAction is same as('confirmPage') %}
  27.                 data-toggle="modal"
  28.                 data-modal-class="quickview-modal"
  29.                 data-url="{{ path('widgets.quickview.minimal', { 'productId': lineItem.referencedId }) }}"
  30.             {% endif %}
  31.         >
  32.             {% block page_checkout_item_info_image_element %}
  33.                 {% if lineItem.cover.url %}
  34.                     {% sw_thumbnails 'cart-item-img-thumbnails' with {
  35.                         media: lineItem.cover,
  36.                         sizes: {
  37.                             'default': '100px'
  38.                         },
  39.                         attributes: {
  40.                             'class': 'img-fluid cart-item-img',
  41.                             'alt': (lineItem.cover.translated.alt ?: ''),
  42.                             'title': (lineItem.cover.translated.title ?: '')
  43.                         }
  44.                     } %}
  45.                 {% else %}
  46.                     {% sw_icon 'placeholder' style {
  47.                         'size': 'fluid'
  48.                     } %}
  49.                 {% endif %}
  50.             {% endblock %}
  51.         </a>
  52.     {% endif %}
  53. {% endblock %}