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

Open in your IDE?
  1. {# @deprecated tag:v6.5.0 - Template `confirm-item.html.twig` is deprecated. Use `storefront/component/line-item/line-item.html.twig` instead. #}
  2. {% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  3. {% block page_checkout_item_unit_price %}
  4.     {# display tax instead of item price in confirm item #}
  5.     {% block page_checkout_item_tax_price %}
  6.         {% if context.salesChannel.taxCalculationType == 'horizontal' %}
  7.             <div class="col-12 col-sm-4 col-md-2 cart-item-tax-price">
  8.                 {% block page_checkout_item_tax_price_label %}
  9.                     <div class="cart-item-tax-price-label">
  10.                         {% if context.taxState == "gross" %}
  11.                             {{ "checkout.cartHeaderTaxIncludeVat"|trans|sw_sanitize }}
  12.                         {% else %}
  13.                             {{ "checkout.cartHeaderTaxExcludeVat"|trans|sw_sanitize }}
  14.                         {% endif %}
  15.                     </div>
  16.                 {% endblock %}
  17.                 {% block page_checkout_item_tax_price_inner %}
  18.                     {% for calculatedTax in lineItem.price.calculatedTaxes %}
  19.                         {{ calculatedTax.tax|currency }}
  20.                         <br>
  21.                     {% endfor %}
  22.                 {% endblock %}
  23.             </div>
  24.         {% endif %}
  25.     {% endblock %}
  26. {% endblock %}
  27. {% block page_checkout_item_total_price_tax_symbol %}{% endblock %}
  28. {% block page_checkout_item_quantity_redirect %}
  29.     <input type="hidden"
  30.            name="redirectTo"
  31.            value="frontend.checkout.confirm.page">
  32. {% endblock %}
  33. {% block page_checkout_item_remove_redirect %}
  34.     <input type="hidden"
  35.            name="redirectTo"
  36.            value="frontend.checkout.confirm.page">
  37. {% endblock %}
  38. {% block page_checkout_item_children %}
  39.     {% set childTemplate = '@Storefront/storefront/page/checkout/confirm/confirm-item.html.twig' %}
  40.     {{ parent() }}
  41. {% endblock %}