templates/frontend/cart/cart.html.twig line 1

Open in your IDE?
  1. {% extends 'frontend.html.twig' %}
  2. {% block content %}
  3.     <div class="rts-cart-section section-gap" id="cart-page">
  4.         <div class="container">
  5.             <h4 class="section-title">{{ 'app.your cart selection'|trans }}</h4>
  6.             <div class="row justify-content-between">
  7.                 <div class="col-xl-7">
  8.                     <div class="cart-table-area">
  9.                         <table class="table table-bordered table-hover" id="cart-table">
  10.                             <tbody>
  11.                                 {% for area in areas %}
  12.                                 <tr data-uuid="{{ area.uuid }}" class="cart-product-row-{{ area.uuid }}">
  13.                                     <td class="ps-3">
  14.                                         <div class="product-title-area">
  15.                                             <h4 class="product-title">{{ area.name }}</h4>
  16.                                             <span class="pretitle">
  17.                                                 {{ 'app.measurements'|trans }}: {{ area.width}} x {{ area.height}} mm<br>
  18.                                                 {{ 'app.contractDuration'|trans }}: {{ area.minDuration }} Monate<br>
  19.                                                 {{ 'app.unitPricePerYear'|trans }}: {{ area.pricePerYear }} {{ "app.currency_sign"|trans }}
  20.                                             </span>
  21.                                         </div>
  22.                                     </td>
  23.                                     <td>
  24.                                         {{ 'app.setup_and_production'|trans }}
  25.                                         <h4 class="product-title">
  26.                                             <span class="product-setup-price">{% if area.withinSetup %}zzgl. {{ area.setupPrice }} {{ "app.currency_sign"|trans }}{% else %}Für {{ area.setupPrice }} {{ "app.currency_sign"|trans }} hinzufügen{% endif %}</span>
  27.                                             <button data-uuid="{{ area.uuid }}" data-within-setup="{{ area.withinSetup }}" class="toggleProductionAndSetupCartView" type="button">
  28.                                                 <i class="fal fa-{% if area.withinSetup %}minus{% else %}plus{% endif %}-square"></i>
  29.                                             </button>
  30.                                         </h4>
  31.                                     </td>
  32.                                     <td>
  33.                                         {{ 'app.totalForDuration'|trans }}
  34.                                         <h4 class="product-price {{ area.uuid }}-product-price">
  35.                                             {{ area.pricePerPeriod }} {{ "app.currency_sign"|trans }}
  36.                                         </h4>
  37.                                     </td>
  38.                                     <td class="last-td pe-3">
  39.                                         <button type="button" class="remove-from-cart" data-uuid="{{ area.uuid }}">
  40.                                             <i class="fa fa-trash"></i>
  41.                                         </button>
  42.                                     </td>
  43.                                 </tr>
  44.                                 {% endfor %}
  45.                             </tbody>
  46.                         </table>
  47.                     </div>
  48.                 </div>
  49.                 <div class="col-xl-4">
  50.                     <div class="checkout-box">
  51.                         <div class="checkout-box-inner">
  52.                             <div class="total-area">
  53.                                 <span class="title">{{ 'app.in total'|trans|capitalize }}</span>
  54.                                 <span class="total-price">{{ cartTotal }} {{ "app.currency_sign"|trans }}</span>
  55.                             </div>
  56.                         </div>
  57.                         <a href="{{ path('app_frontend_checkout') }}#checkout-page" class="btn procced-btn btn-customer mb-3" id="toCheckoutBtn">
  58.                             {{ 'app.to checkout'|trans }}
  59.                         </a>
  60.                         <a href="{{ path('app_frontend_index') }}" class="continue-shopping">
  61.                             <i class="fal fa-long-arrow-left"></i> {{ 'Back to home'|trans }}
  62.                         </a>
  63.                     </div>
  64.                 </div>
  65.             </div>
  66.         </div>
  67.     </div>
  68. {% endblock %}
  69. {% block js_bottom %}
  70.     <script type="text/javascript">
  71.         {% include '/frontend/cart/js/toogle-setup.js.twig' %}
  72.         {% include '/frontend/cart/js/remove-item.js.twig' %}
  73.     </script>
  74. {% endblock %}