themes/BootstrapChildTheme/SyliusShopBundle/views/Cart/Widget/_popup.html.twig line 1

Open in your IDE?
  1. {% import "@SyliusShop/Common/Macro/money.html.twig" as money %}
  2. {% if cart.empty %}
  3.     <div class="cart-dropdown-content">
  4.         <div class="card-body empty-cart text-center">
  5.             {{ 'sylius.ui.your_cart_is_empty'|trans }}.
  6.         </div>
  7.     </div>
  8. {% else %}
  9.     <div class="cart-dropdown-content">
  10.         <table class="cart-dropdown-table table mb-4">
  11.         {% for item in cart.items|filter(item => not item.gift) %}
  12.             <tr>
  13.                 <td class="name">
  14.                     {{ item.product }}
  15.                 </td>
  16.                 <td class="qty">
  17.                     <span class="num">{{ item.quantity }}x</span>
  18.                 </td>
  19.                 <td class="price">
  20.                     {{ money.convertAndFormat(item.total) }}
  21.                 </td>
  22.             </tr>
  23.         {% endfor %}
  24.             <tr class="summary bg-light">
  25.                 <td colspan="2" class="text">{{ 'sylius.ui.subtotal'|trans }}:</td>
  26.                 <td class="subtotal">{{ money.convertAndFormat(cart.itemsTotal) }}</td>
  27.             </tr>
  28.         </table>
  29.         <div class="px-3 pb-2">
  30.             <a href="{{ path('sylius_shop_cart_summary') }}" class="btn btn-outline-secondary d-block mb-3">{{ 'layout.cart_edit_cart_btn_text'|trans }}</a>
  31.             <a href="{{ path('sylius_shop_checkout_start') }}" class="btn btn-primary d-block">{{ 'layout.cart_checkout_btn_text'|trans }}</a>
  32.         </div>
  33.     </div>
  34. {% endif %}