Skip to content

Custom Data

Custom Data

You can add custom fields to Shopware and thus add your own fields to extending data records. The user is able to modify this fields from within the Shopware Administration.
To make use of the custom fields register your custom field sets in your manifest file:

// manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
            <label>Example Set</label>
            <label lang="de-DE">Beispiel-Set</label>
                <text name="swag_code">
                    <label>Example field</label>

For a complete reference of the structure of the manifest file take a look at the Manifest reference.

For the data needed, please refer to the custom fields in general: At first, you need a custom field set, as custom fields in Shopware are organised in sets. Here you need to consider some important fields:

  • name: A technical name for your set
  • label: This element provides the label of the text and can be used for defining translations of the label as well.
  • related-entities: With this element set the entities the custom field set is used in
  • fields: Finally, the fields are configured in this section.


The names of the custom fields are global and therefore should always contain a vendor prefix, like "swag" for "shopware ag", to keep them unique. This holds true for the name of the custom field set, as well as each name of the fields itself.

When defining custom fields in the <fields> element, you can configure additional properties of the fields. For example a placeholder, min, max and step size of a float field:

<float name="swag_test_float_field">
    <label>Test float field</label>
    <label lang="de-DE">Test-Kommazahlenfeld</label>
    <help-text>This is an float field.</help-text>
    <placeholder>Enter an float...</placeholder>

Please refer to Custom field documentation for further details.

Custom Fields