Skip to main content

How do I configure and customize my order documents?

Shopware 6 — Customize order documents such as invoices and delivery notes to your needs using custom fields and Pickware extensions.

In this article, you get an overview of how to manage your order documents in Shopware 6 and how to use Pickware-specific extensions to display additional information – for example, custom fields on products and orders, or data captured during removal from the WMS App.

The basic document configuration is done directly in Shopware. You can find detailed information on all document types and settings here in the Shopware helpcenter.

Select the document type

You make all settings for your order documents in the Shopware Admin.
To do so, go to Settings → Commerce section → Documents.

Dokumentensettings.png

In the overview, you see all available document types, for example your Invoice (invoice), the delivery note (delivery_note) and the cancellation invoice. Our Pickware-specific documents such as the Picklist (pickware_erp_picklist) are also listed here.

DOkumententypen.png

Here you create document types, assign them to Sales Channels, and edit the layout, headers and footers, address settings, and all Shopware-side options.

In the document settings, for most document types you can also enable the option Hide customer number if the customer number should not appear on the document.

Display custom fields on your documents

You can also extend your documents with custom fields. These offer flexible ways to adapt order documents to industry-specific or internal requirements. These custom fields can be displayed directly in the documents without needing a template customization.

You can find out how to configure these custom fields and what options they give you here.

Extend supplier orders

For supplier orders, additional Pickware-specific document features are available, e.g. customizing the PDF template (e.g. logo, alignment, business address) and configuring the columns of the CSV file for email dispatch. You can find more on this in the article How do I customize the documents for my supplier orders?

Customize the postponed document

The document that is created when you postpone an order in the WMS App can be customized via a template customization. For this customization, proceed in the same way as for other Pickware documents: In your theme, create the file picking-process-receipt.html.twig in the documents directory and overwrite the block document_body. Since the template does not provide any further blocks, the entire content of the block must be overwritten.

/custom/plugins/DeinTheme/src/Resources/views/documents/picking-process-receipt.html.twig

You can use the following code as a template for your customization:

// picking-process-receipt.html.twig 
{% sw_extends '@PickwareWmsBundle/documents/picking-process-receipt.html.twig' %}

{% block document_body %}
// Original Inhalt
{% endblock %}

You can find our template for copying the content in the plugin folder under

PickwareErpStarter/vendor/pickware/wms-bundle/src/Resources/views/documents/picking-process-receipt.html.twig

Note that this template is also used for the document of the completed picking process — changes affect both documents.

Display information captured during removal (e.g. serial numbers)

When you pick with the Pickware WMS App, additional details can be captured during removal. Depending on the workflow, these include, for example, serial or batch numbers, best-before dates, or other product-specific properties. To do this, navigate to Settings → Extensions → Pickware ERP → Information types section.

Pickware.png

Here you can view your existing information types and add new ones. Whether and how this information should later appear on your order documents is determined with the checkbox Show on order documents . It appears right away when you create a new information type.

Info.png
Info 1.png

Your configured information is automatically output at the appropriate place in the document. However, data captured during removal is not shown on invoice corrections.

Serie.png

If you create invoices or delivery notes after the picking process is completed, your customers can, for example, trace the serial numbers of their products directly on the document.

Outstanding items on the partial delivery note

For partial deliveries via the WMS App, the delivery note contains, in addition to the list of delivered items, an overview of all items that are still outstanding. This way, your customers can see at a glance which items will follow with a later delivery – this reduces inquiries and prevents incomplete parcels from being mistakenly perceived as an incorrect delivery.

Lieferschein ausstehend.png

Below the main table, the section Outstanding items appears. It shows all items that have not yet been delivered or not been delivered in full, with the respective outstanding quantity in the column Outstanding. Items that were canceled, refunded, or returned before the delivery note was created do not appear in the list of outstanding items.

Configuration

The display of outstanding items is enabled by default. If you do not want to show the section on your delivery notes, you can disable it in the document configuration of the delivery note. To do so, navigate in the Admin to Settings → Commerce → Documents, open the configuration of your delivery note (delivery_note), and disable the corresponding option there.

Option.png

The section is displayed exclusively on delivery notes that are generated via the WMS App. Delivery notes that are created directly via the Shopware Admin do not contain the section.

Customize order documents with the Document Editor

If the document settings are not enough, you can customize the invoice, delivery note, credit note, cancellation invoice, invoice correction, and picklist with the Document Editor directly in the Shopware Admin — without your own plugin and without Twig knowledge. You can find out how this works and what the editor can do in the article How do I customize my order documents with the Document Editor?

Use the template file for more advanced customizations

If the Document Editor is not enough either, you can directly overwrite the underlying Twig templates. To do so, create a file with the appropriate name in the documents directory in your own theme or plugin and extend or overwrite the existing blocks. You can find a complete guide from Shopware on this here.

For many Pickware documents, we already provide a starter template that you can use as a basis. In practice, it has proven effective to first implement the desired display via the configuration or the Document Editor, and only to go directly into the template for special layout requirements. This keeps your customizations clear and easier to follow.

If you want to customize documents, it is therefore best to always start in the Shopware Admin under Settings → Commerce → Documents and select the relevant document type there. Then check step by step:

  1. Do the logo, headers and footers, and addresses match your brand presence?

  2. Does the line item list contain all the information that is relevant for customers or the warehouse?

  3. Do you want to make additional details visible on the document via custom fields?

  4. Should information captured during removal, such as serial numbers, appear on documents?

  5. Can the desired change be implemented with the Document Editor, without creating your own Twig file?

Only if these options don't get you to your goal is it worth taking a look at the template customization. This way, you keep control over your documents without having to dive unnecessarily deep into the code.

For content that lies outside the Pickware configuration but that you still want to include in, for example, your picklist – such as fields from third-party plugins or marketplace data like an Amazon transaction ID – a template customization is the right way. This information cannot be displayed via document settings and must be added directly in the template.

Customizations in the plugin folder are not update-safe and are overwritten with every update. You should therefore always create your own theme and store your individual customizations there.

Your own theme for Pickware POS

For invoices from Pickware POS, the normal Shopware template inheritance applies. So that your customized template is also used for POS orders, additionally assign your theme to the Sales Channel Pickware POS.

Twig error when creating documents in the WMS App

If a Twig error occurs when creating a delivery note or invoice in the WMS App, for example because null instead of a text arrives in documents/base.html.twig, this is often due to a theme that overwrites the document template. In this case, check the customizations in your theme.

Preserve Pickware notes when overwriting

The notes on tax-free export or intra-community delivery are located in the block document_payment_shipping_inner. If you overwrite this block, use {{ parent() }} so that the notes are preserved. You can find out which settings control the notes in How do I configure my invoice?

Did this answer your question?