templates/cart/shared/order_summary.html.twig line 1

Open in your IDE?
  1. <h4 class="d-flex justify-content-between align-items-center mb-3">
  2.     <span class="">{{ 'checkout.summary' | trans }}</span>
  3.     <span class="badge badge-secondary badge-pill">{{ cart.itemAmount }}</span>
  4. </h4>
  5. <ul class="list-group mb-3">
  6.     <li class="list-group-item d-flex justify-content-between">
  7.         <div>
  8.             <p class="mb-0"><strong class="my-0">{{ 'checkout.products' | trans }}</strong></p>
  9.             <small class="text-muted">
  10.                 {% for cartItem in cart.items %}
  11.                     <div>{{ cartItem.name }}</div>
  12.                 {% endfor %}
  13.             </small>
  14.         </div>
  15.         <span class="text-muted text-nowrap text-right">{{ cart.priceCalculator.subTotal }}</span>
  16.     </li>
  17.     {% for name, modification in cart.priceCalculator.priceModifications %}
  18.         <li class="list-group-item d-flex justify-content-between">
  19.             <div>
  20.                 <strong class="my-0">
  21.                     {% if(modification.description) %}
  22.                         {{ modification.description }}
  23.                     {% else %}
  24.                         {{ name }}
  25.                     {% endif %}
  26.                 </strong>
  27.             </div>
  28.             <span class="text-muted text-nowrap text-right">{{ modification }}</span>
  29.         </li>
  30.     {% endfor %}
  31.     <li class="list-group-item d-flex justify-content-between" style="border-top: 2px solid">
  32.         <h6><span>{{ 'checkout.totalprice' | trans }}</span></h6>
  33.         <h6 class="text-nowrap text-right">{{ cart.priceCalculator.grandTotal }}</h6>
  34.     </li>
  35. </ul>