{# Notice for plugins and theme developer: This template can be extended over sw_extends. The blocks from the templates in the /includes folder can be overwritten directly in this template merge 16.11.2020 #} {% use '@Framework/documents/includes/loop.html.twig' %} {% use '@Framework/documents/includes/footer.html.twig' %} {% use '@Framework/documents/includes/summary.html.twig' %} {% use '@Framework/documents/includes/payment_shipping.html.twig' %} {% use '@Framework/documents/includes/comment.html.twig' %} {% use '@Framework/documents/includes/shipping_address.html.twig' %} {% block document_base %} {# @var order \Shopware\Core\Checkout\Order\OrderEntity #} {# @var config \Shopware\Core\Checkout\Document\DocumentConfiguration #} {# @var context \Shopware\Core\Framework\Context #} {# @var customer \Shopware\Core\Checkout\Order\Aggregate\OrderCustomer\OrderCustomerEntity #} {% set customer = order.orderCustomer %} {% set total = order.lineItems.count %} {# @var billingAddress \Shopware\Core\Checkout\Order\Aggregate\OrderAddress\OrderAddressEntity #} {% set billingAddress = order.addresses.get(order.billingAddressId) %} {% set currencyIsoCode = order.currency.isoCode %} {% set locale = order.language.locale.code %} {% set languageId = order.language.id %} {% set nestedLineItems = order.nestedLineItems %} {% if config.itemsPerPage|intval === 0 or config.itemsPerPage <= 0 %} {% set itemsPerPage = 10 %} {% else %} {% set itemsPerPage = config.itemsPerPage|intval %} {% endif %} {% block document_head %} {#{% if config.title %}#} {% block document_title_tag %}{% endblock %} {#{% endif %}#} {% block document_font_links %} {% endblock %} {% if config.pageOrientation == 'landscape' %} {% sw_include '@Framework/documents/style_base_landscape.css.twig' %} {% else %} {% sw_include '@Framework/documents/style_base_portrait.css.twig' %} {% endif %} {% endblock %} {{ block('footer') }} {% block document_body %} {% set position = 1 %} {% set prefix = '' %} {% set level = 0 %} {% for lineItem in nestedLineItems %} {{ block('loop') }} {% set position = position + 1 %} {% endfor %} {{ block('summary') }} {{ block('payment_shipping') }} {{ block('comment') }} {{ block('shipping_address') }} {% endblock %} {% endblock %}