vendor/shopware/storefront/Resources/views/storefront/page/checkout/summary.html.twig line 1

Open in your IDE?
  1. {% block page_checkout_summary %}
  2.     <div class="checkout-aside-summary-container">
  3.         {% if page.cart %}
  4.             {% set summary = page.cart %}
  5.         {% elseif page.order %}
  6.             {% set summary = page.order %}
  7.         {% endif %}
  8.         {% set displayRounded = context.totalRounding.interval != 0.01 or context.totalRounding.decimals != context.itemRounding.decimals %}
  9.         {% set decimals = context.totalRounding.decimals %}
  10.         {% set total = summary.price.totalPrice %}
  11.         {% if displayRounded %}
  12.             {% set decimals = context.itemRounding.decimals %}
  13.             {% set total = summary.price.rawTotal %}
  14.         {% endif %}
  15.         <dl class="row checkout-aside-summary-list {{ gridNoGuttersClass }} {% if displayRounded %}display-rounded{% endif %}">
  16.             {% block page_checkout_summary_inner %}
  17.                 {% sw_include '@Storefront/storefront/page/checkout/summary/summary-position.html.twig' with { 'summary': summary } %}
  18.                 {% sw_include '@Storefront/storefront/page/checkout/summary/summary-shipping.html.twig' with { 'summary': summary } %}
  19.                 {% if summary.price.taxStatus == 'gross' %}
  20.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' with {
  21.                         'total': total,
  22.                         'decimals': decimals
  23.                     } %}
  24.                     {% if displayRounded %}
  25.                         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total-rounded.html.twig' with {
  26.                             'summary': summary,
  27.                             'decimals': context.totalRounding.decimals
  28.                         } %}
  29.                     {% endif %}
  30.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-net.html.twig' with { 'summary': summary } %}
  31.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-tax.html.twig' with { 'summary': summary } %}
  32.                 {% else %}
  33.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-net.html.twig' with { 'summary': summary } %}
  34.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-tax.html.twig' with { 'summary': summary } %}
  35.                     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' with {
  36.                         'total': total,
  37.                         'decimals': decimals
  38.                     } %}
  39.                     {% if displayRounded %}
  40.                         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total-rounded.html.twig' with {
  41.                             'summary': summary,
  42.                             'decimals': context.totalRounding.decimals
  43.                         } %}
  44.                     {% endif %}
  45.                 {% endif %}
  46.             {% endblock %}
  47.         </dl>
  48.     </div>
  49. {% endblock %}