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

Open in your IDE?
  1. {% extends 'frontend.html.twig' %}
  2. {% block content %}
  3.     {{ form_start(form) }}
  4.     <div class="rts-checkout-section" id="checkout-page">
  5.         <div class="container">
  6.             <h4 class="section-title mb-5">Vertragsdaten</h4>
  7.             <div class="row justify-content-between">
  8.                 <div class="col-xl-8">
  9.                     {% include 'frontend/checkout/form__sponsor.html.twig' with {'form': form} %}
  10.                 </div>
  11.                 <div class="col-xl-4">
  12.                     <div class="action-item">
  13.                         <div class="action-top">
  14.                             <span class="action-title">{{ 'app.your cart selection'|trans }}</span>
  15.                         </div>
  16.                         {% set total = 0 %}
  17.                         {% for area in areas %}
  18.                             {% if area.customer.configuration.contributionAllow and area.customer.configuration.contributionActive %}
  19.                                 {% set price = (area.price + area.customer.configuration.contributionPrice) * area.minDuration %}
  20.                             {% else %}
  21.                                 {% set price = area.price * area.minDuration %}
  22.                             {% endif %}
  23.                             {% if area.withinSetupPrice %}
  24.                                 {% set price = price + area.setupPriceUnit %}
  25.                             {% endif %}
  26.                             {% set total = total + price %}
  27.                             <div class="category-item">
  28.                                 <div class="category-item-inner">
  29.                                     <div class="category-title-area">
  30.                                         <span class="category-title">
  31.                                             {{ area.name }}<br>
  32.                                             <small>
  33.                                                 {{ area.settings.unitWidth }}x{{ area.settings.unitHeight }} mm<br>
  34.                                                 {{ area.minDuration }} {{ 'app.months'|trans }}
  35.                                                 {% if area.withinSetupPrice %}<br>inkl. Produktion & Montage {{ area.setupPriceUnit|number_format(2, ',', '.') }} {{ 'app.currency_sign'|trans }}{% endif %}
  36.                                             </small>
  37.                                         </span>
  38.                                     </div>
  39.                                     <div class="price">{{ price|number_format(2, ',', '.') }} {{ 'app.currency_sign'|trans }}</div>
  40.                                 </div>
  41.                             </div>
  42.                         {% endfor %}
  43.                         <div class="action-bottom">
  44.                             <span class="total">{{ 'app.in total'|trans|capitalize }}</span>
  45.                             <span class="total-price">{{ total|number_format(2, ',', '.') }} {{ 'app.currency_sign'|trans }}</span>
  46.                         </div>
  47.                     </div>
  48.                     <button type="submit" class="place-order-btn btn-customer">
  49.                         {{ 'book_now'|trans }}
  50.                     </button>
  51.                 </div>
  52.             </div>
  53.         </div>
  54.     </div>
  55.     {{ form_end(form) }}
  56. {% endblock %}