vendor/shopware/storefront/Resources/views/storefront/page/checkout/confirm/confirm-product-header.html.twig line 1

Open in your IDE?
  1. {# @deprecated tag:v6.5.0 - Template `confirm-product-header.html.twig` is deprecated. Use `storefront/component/checkout/cart-header.html.twig` instead. #}
  2. {% sw_extends '@Storefront/storefront/page/checkout/cart/cart-product-header.html.twig' %}
  3. {% block page_checkout_cart_header_quantity %}
  4.     {% set layout = context.salesChannel.taxCalculationType == 'horizontal' ? 'col-2' : 'col-4' %}
  5.     <div class="{{ layout }} cart-header-quantity">
  6.         {{ "checkout.cartHeaderQuantity"|trans|sw_sanitize }}
  7.     </div>
  8. {% endblock %}
  9. {% block page_checkout_cart_header_unit_price %}
  10.     {# display tax instead of item price in confirm header #}
  11.     {% block page_checkout_cart_header_tax_price %}
  12.         {% if context.salesChannel.taxCalculationType == 'horizontal' %}
  13.             <div class="col-2 cart-header-tax-price">
  14.                 {% if context.taxState == "gross" %}
  15.                     {{ "checkout.cartHeaderTaxIncludeVat"|trans|sw_sanitize }}
  16.                 {% else %}
  17.                     {{ "checkout.cartHeaderTaxExcludeVat"|trans|sw_sanitize }}
  18.                 {% endif %}
  19.             </div>
  20.         {% endif %}
  21.     {% endblock %}
  22. {% endblock %}