custom/plugins/OttMoebelfirstTheme/src/Resources/views/storefront/page/checkout/summary.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/summary.html.twig' %}
  2. {% block page_checkout_summary_inner %}
  3.     {% set sumPseudoDiscount = 0 %}
  4.     {% for lineItemPseudo in page.cart.lineItems %}
  5.         {% set sumPseudoDiscount = sumPseudoDiscount + (lineItemPseudo.price.listPrice.discount * lineItemPseudo.quantity)  %}
  6.     {% endfor %}
  7.     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-position.html.twig' with { 'summary': summary } %}
  8.     {% sw_include '@Storefront/storefront/page/checkout/summary/summary-shipping.html.twig' with { 'summary': summary } %}
  9.     {% if summary.price.taxStatus == 'gross' %}
  10.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' with {
  11.             'total': total,
  12.             'decimals': decimals
  13.         } %}
  14.         {% if displayRounded %}
  15.             {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total-rounded.html.twig' with {
  16.                 'summary': summary,
  17.                 'decimals': context.totalRounding.decimals
  18.             } %}
  19.         {% endif %}
  20.         {% if 'confirmPage' === controllerAction %}
  21.             <dt class="col-5 checkout-aside-summary-label"></dt>
  22.             <dd class="col-7 checkout-aside-summary-value ott-pseudo-price-discount">{{ 'ott.checkout.summaryDiscountSavings'|trans|striptags }} <span class="ott-pseudo-price-discount-value">{{ (sumPseudoDiscount * -1)|currency }}</span></dd>
  23.         {% endif %}
  24.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-net.html.twig' with { 'summary': summary } %}
  25.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-tax.html.twig' with { 'summary': summary } %}
  26.     {% else %}
  27.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-net.html.twig' with { 'summary': summary } %}
  28.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-tax.html.twig' with { 'summary': summary } %}
  29.         {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' with {
  30.             'total': total,
  31.             'decimals': decimals
  32.         } %}
  33.         {% if displayRounded %}
  34.             {% sw_include '@Storefront/storefront/page/checkout/summary/summary-total-rounded.html.twig' with {
  35.                 'summary': summary,
  36.                 'decimals': context.totalRounding.decimals
  37.             } %}
  38.         {% endif %}
  39.         {% if 'confirmPage' === controllerAction %}
  40.             <dt class="col-5 checkout-aside-summary-label"></dt>
  41.             <dd class="col-7 checkout-aside-summary-value ott-pseudo-price-discount">{{ 'ott.checkout.summaryDiscountSavings'|trans|striptags }} <span class="ott-pseudo-price-discount-value">{{ (sumPseudoDiscount * -1)|currency }}</span></dd>
  42.         {% endif %}
  43.     {% endif %}
  44. {% endblock %}