modules/XC/CrispWhiteSkin/templates/web/customer/mini_cart/horizontal/parts/items.twig line 1

Open in your IDE?
  1. {##
  2.  # Horizontal minicart items block
  3.  #
  4.  # @ListChild (list="minicart.horizontal.children", weight="10")
  5.  #}
  6. <div {{ this.printTagAttributes(this.getItemsContainerAttributes())|raw }}>
  7.   <h4 class="title">
  8.     <a href="{{ xurl('cart') }}">{{ t('Last added items', {'count': this.get('cart').countQuantity()}) }}</a>
  9.   </h4>
  10.   {% if this.hasItems() %}
  11.     <ul class="cart-items">
  12.       {% for item in this.getItemsList() %}
  13.         <li class="cart-item">
  14.           {{ widget_list('minicart.horizontal.item', item=item) }}
  15.         </li>
  16.       {% endfor %}
  17.     </ul>
  18.   {% endif %}
  19.   {% if this.isTruncated() %}
  20.     <p class="other-items"><a href="{{ xurl('cart') }}">{{ t('See all items in the cart', {'count': this.get('cart').countQuantity()}) }}</a></p>
  21.   {% endif %}
  22.   <p class="subtotal">
  23.     <strong>{{ t('Subtotal') }}:</strong>
  24.     <span>{{ this.formatPrice(this.get('cart').getDisplaySubtotal(), this.get('cart').getCurrency(), 1) }}</span>
  25.   </p>
  26.   <div class="buttons-row">
  27.     {{ widget_list('minicart.horizontal.buttons') }}
  28.   </div>
  29. </div>