< Back
Print

Custom Fields (attribute)

Almost every Shopware 5 entity, most importantly products (aka. articles), can be extended with custom fields. These can be used by the frontend team for different display options or additional displays, but also for special flags of products and many more implementations.

For the classic product filters, property attributes are recommended to be used instead of custom fields.

In this example, we will create the custom field “my_custom_field” for products and fill it via the Shopware 5 Connector.

The commonly used syntax for the column name is kebap case e.g. “my_custom_field”. To fill it via the connector using the Shopware API we have to send it with the key “myCustomField” (camel case).

1) Open your Shopware data map

2) Create the row “attribute” and select the format “Create an array”

3) Add your custom field in the array format

The array format acts like a mini data map but just for custom fields. Add the row for “my_custom_field” with the according source attribute and format. It will now be exported by the connector.

If you have at least one language-dependent custom field, select language-dependent = yes at the bottom of the array format.

4) Extend the array format by other custom fields

Just like for “my_custom_field”, the array format can be extended by further rows for other custom fields.

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents