custom/plugins/SchilderSysteme/src/Resources/views/storefront/page/checkout/_page.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_flashbags %}{% endblock %}
  3. {% block base_content %}
  4.     {% block page_checkout %}
  5.         <div class="checkout">
  6.             {% block page_checkout_container %}
  7.                 <div class="checkout-container">
  8.                     {% block page_checkout_main %}
  9.                         <div class="checkout-main">
  10.                             {% block base_flashbags_checkout %}
  11.                                 <div class="flashbags">
  12.                                     {% for type, messages in app.flashes %}
  13.                                         {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
  14.                                     {% endfor %}
  15.                                 </div>
  16.                             {% endblock %}
  17.                             {% block page_checkout_main_content %}{% endblock %}
  18.                         </div>
  19.                     {% endblock %}
  20.                     {% block page_checkout_additional %}{% endblock %}
  21.                     {% block page_checkout_aside %}
  22.                         <div class="checkout-aside {% if block('page_checkout_additional')|trim %}checkout-aside-no-offset{% endif %}">
  23.                             {% block page_checkout_aside_container %}
  24.                                 <div class="checkout-aside-container">
  25.                                     {% block page_checkout_aside_summary %}
  26.                                         <div class="checkout-aside-summary">
  27.                                             {% block page_checkout_summary_header %}
  28.                                                 {% if context.customer.customFields.lenz_customer_discount_customer_discount_percent and context.customer.customFields.lenz_customer_discount_customer_discount_percent > 0 %}
  29.                                                     <div role="alert" class="alert alert-success">
  30.                                                         <div class="alert-content-container">
  31.                                                             <div class="alert-content">
  32.                                                                 {% set sum = 0 %}
  33.                                                                 {% for item in page.cart.lineitems %}
  34.                                                                     {% if item.type === 'product' %}
  35.                                                                         {% set sum = (sum + item.price.totalPrice)|round('2', 'floor') %}
  36.                                                                     {%endif %}
  37.                                                                 {% endfor %}
  38.                                                                 {%set sum = (sum/(100.0-context.customer.customFields.lenz_customer_discount_customer_discount_percent) * 100) %}
  39.                                                                 {% set sum = sum / 100 * context.customer.customFields.lenz_customer_discount_customer_discount_percent %}
  40.                                                                 Ihr Rabatt in Höhe
  41.                                                                 von {{ context.customer.customFields.lenz_customer_discount_customer_discount_percent }} % ({{ sum|currency }})
  42.                                                                 wurde bereits berücksichtigt.
  43.                                                             </div>
  44.                                                         </div>
  45.                                                     </div>
  46.                                                 {% endif %}
  47.                                                 <h2 class="checkout-aside-summary-header">
  48.                                                     {{ "checkout.summaryHeader"|trans|sw_sanitize }}
  49.                                                 </h2>
  50.                                             {% endblock %}
  51.                                             {% block page_checkout_summary_list %}
  52.                                                 <div class="checkout-aside-summary-list-container">
  53.                                                     {% block page_checkout_summary_list_container %}
  54.                                                         {% sw_include '@Storefront/storefront/page/checkout/summary.html.twig' %}
  55.                                                     {% endblock %}
  56.                                                 </div>
  57.                                             {% endblock %}
  58.                                         </div>
  59.                                     {% endblock %}
  60.                                     {% block page_checkout_aside_actions %}{% endblock %}
  61.                                 </div>
  62.                             {% endblock %}
  63.                         </div>
  64.                     {% endblock %}
  65.                 </div>
  66.             {% endblock %}
  67.         </div>
  68.     {% endblock %}
  69. {% endblock %}