Skip to main content

How do I configure custom fields for my documents?

Shopware 6 — Set up custom fields to extend orders and products with individual information and display it directly in documents.

Custom fields let you flexibly extend orders and products with individual information and display it directly in documents. This makes it easy to adapt order documents to industry-specific or internal requirements. The possible uses vary depending on the industry and customer. Here are some practical examples that show what is possible with custom fields:

  • Wine trade: vintage, grape variety, alcohol content or quality seals

  • Coffee or delicatessen trade: organic seal number, roast level, flavor profile

  • Electronics: serial or model variants, technical specifications

  • Fashion: material composition, care instructions

  • Fireworks: legal information on explosive content

  • B2B business: internal references, project numbers, cost centers or agreements at order level

  • Marketplace information such as the Amazon transaction ID

Unlike information captured when removing stock, custom fields let you capture information that applies to all units of a product and does not have to be entered manually for each order.

Create custom fields

Custom fields are managed in sets. You can find all existing sets under Settings → Content → Custom fields. You can also add new custom fields to existing sets later on.

Below, we show you the basic steps for creating a new set. To do so, click Add set (Set anlegen) in the top right.

Here you can enter the following information:

  • Technical name – Every set needs a technical name for unique identification, which always starts with custom_. You can freely choose the part after custom_. This name cannot be modified later.

  • Position – If you have several custom field sets per entity, you can control the display order with this value. The lower this value is, the further up the set appears.

  • Label – The Label field is the name of the set as it will later be displayed in the entity. If the option Maintain in all administration languages is enabled, you can maintain the name of the set in additional languages of your Admin, besides your default language.

  • Use for – Here you select the entities for which the custom field set should be available.

Then save your set.

Now you can create custom fields further down.

First, select a field type. Depending on the type, you can define further properties. For the type Select field, for example, you will find the option to define different options further down. Regardless of the selected field type, you can enter the name in the Label field at the bottom.

The technical name is made up of custom, the name of the custom field set and any name for the field, each separated by underscores. This name cannot be modified later either. Only the custom_ part is fixed: you already defined the name of the set when creating the set, and you can freely choose the name for the individual field here.

If you accidentally save your custom field without entering a complete technical name, an error message appears as soon as you try to fill in the field in an entity.

Once everything is filled in to your satisfaction, click Add to finish.

You can find more detailed information on configuring custom fields here at Shopware.

Fill in custom fields

You can find custom fields in different places in the respective entities. Here is an overview:

  • Orders: tab Detail → section Custom fields

  • Products: tab Specifications → section Custom fields

  • Batches: section Custom fields

  • Supplier orders: tab Custom fields

  • Customers: tab General → section Custom fields

  • Warehouse: tab Overview → section Custom fields

  • Suppliers: tab General → section Custom fields

  • Shipping methods: section Custom fields

If you have not yet created any custom fields for the relevant entity, your view looks like this. The link takes you directly to the creation of custom fields.

Zusatzfelder .png

If custom fields are available, they are arranged by set in tabs:

Display custom fields in documents

Via the document configuration

For certain document types, you can select custom fields directly in the document configuration. These include cancellation invoice, delivery note, invoice, invoice correction, picklist and supplier order.

For most of these documents, you will find a section each for products and orders, which you can use to control which custom fields are displayed where and in which order. For the supplier order document, you can accordingly select custom fields of products, supplier orders and suppliers.

Zusatz 1.png

Product custom fields appear directly below the respective order item, while order custom fields are displayed together at the end of the document.

Dokument.png

What do you need to keep in mind when displaying them?

Product custom fields always appear at the individual item.

Order custom fields only appear if they are filled in on the order. If a fixed text should appear on every document, have the field filled in automatically via a flow when an order is received.

Via the template file

If you want to display custom fields on other documents or customize the display further, you can add the custom fields directly in the template file. You can find out how this works directly in the Shopware documentation.

Did this answer your question?