{# Notice for plugins and theme developer: Do not extend this template! This template will be rendered over the `block` function. Templates which are rendered over the `block` function can not be extended. Instead of extending this template, simply extend the `base.html.twig` (or the document specific template) and override the block you want. All blocks of this template are available in the template which renders this template over the `block` function. #} {% block shipping_costs %} {% if config.displayLineItems %} {% block document_line_item_table_shipping %} {% if billingAddress.additionalAddressLine1 %}
{% endif %} {% if billingAddress.additionalAddressLine2 %}
{% endif %} {% block document_line_item_table_shipping_position %} {% if config.displayLineItemPosition %} {{ nestedLineItems.count + 1 }} {% endif %} {% endblock %} {% block document_line_item_table_shipping_number %} {% endblock %} {% block document_line_item_table_shipping_label %} {{ 'document.lineItems.shippingCosts'|trans|sw_sanitize }} - {{ order.deliveries.first.shippingMethod.translated.name }} {% endblock %} {% block document_line_item_table_shipping_quantity %} 1 {% endblock %} {% if config.displayPrices %} {% block document_line_item_table_shipping_tax %} {% for tax in order.deliveries.first.shippingCosts.calculatedTaxes %}{{ tax.taxRate }} % {% if loop.last %}{% else %}
{% endif %}{% endfor %} {% endblock %} {% block document_line_item_table_unit_price %} {{ order.shippingTotal|currency(currencyIsoCode, languageId) }} {% endblock %} {% block document_line_item_table_total_price %} {{ order.shippingTotal|currency(currencyIsoCode, languageId) }} {% endblock %} {% endif %} {% endblock %} {% endif %} {% endblock %}