cart-items.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!--
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. -->
  7. <div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'openedState': 'active', 'active': isItemsBlockExpanded()}}">
  8. <div class="title" data-role="title">
  9. <strong role="heading">
  10. <translate args="maxCartItemsToDisplay" if="maxCartItemsToDisplay < getCartLineItemsCount()"/>
  11. <translate args="'of'" if="maxCartItemsToDisplay < getCartLineItemsCount()"/>
  12. <span data-bind="text: getCartLineItemsCount()"></span>
  13. <translate args="'Item in Cart'" if="getCartLineItemsCount() === 1"/>
  14. <translate args="'Items in Cart'" if="getCartLineItemsCount() > 1"/>
  15. </strong>
  16. </div>
  17. <div class="content minicart-items" data-role="content">
  18. <div class="minicart-items-wrapper overflowed">
  19. <ol class="minicart-items">
  20. <each args="items()">
  21. <li class="product-item">
  22. <div class="product">
  23. <each args="$parent.elems()" render=""/>
  24. </div>
  25. </li>
  26. </each>
  27. </ol>
  28. </div>
  29. </div>
  30. <div class="actions-toolbar" if="maxCartItemsToDisplay < getCartLineItemsCount()">
  31. <div class="secondary">
  32. <a class="action viewcart" data-bind="attr: {href: cartUrl}">
  33. <span data-bind="i18n: 'View and Edit Cart'"></span>
  34. </a>
  35. </div>
  36. </div>
  37. </div>