Custom fields are a core feature of Shopware 6 and let you extend products, categories or manufacturers individually. With custom fields you flexibly store additional information and output it in the storefront when needed.
The following step-by-step guide shows how to create a custom field, using a GPSR "safety notice" as an example.
Important: Create a separate custom field set for your individual custom fields and do not use the ThemeWare® sets or existing sets from other themes and extensions.
Go to the custom field management:
"Settings" => "System" => "Custom fields" => "Create set"
Click "Create set" and create a new custom field set.
Technical name: e.g. custom_gpsr
Label: e.g. GPSR (products)
Use for: Products
Click "New custom field" and create a new custom field.
Type: e.g. Text editor
Technical name: e.g. custom_gpsr_safety_notice
Label: e.g. Safety notice
Go to the product management and edit the desired product. Fill in the new custom field (e.g. "Safety notice"):
"Catalogues" => "Products" => "Specifications" tab => "Custom fields" section => "GPSR (products)" tab => "Safety notice" field
Since neither Shopware nor ThemeWare® can know where your individual custom field should appear, you embed it manually – either via a CMS element in a Shopping Experiences layout (simple, from Shopware 6.6.9) or via an individual template customization (more flexible, incl. empty check):
Many ThemeWare® features already use prepared custom fields – so you don't create anything yourself, you just fill in the fields and enable the feature in the theme configuration. The matching step-by-step guides:
Product pages
Categories & navigation
You can find more information about ThemeWare® custom fields in the ThemeWare® manual:
Important: Create a separate custom field set for your individual custom fields and do not use the ThemeWare® sets or existing sets from other themes and extensions.
Tip: Since we created a custom field of type "Text editor", you can also apply HTML formatting.