In Shopware 6.4.0.0 it is possible to add custom fields which are based on Entities.
The list of entity types is limited:
Is it easily possible to add additional entity types, such as a list of available product properties?
It is enough to add something like
{
label: "Product Property Group",
value: 'property_group'
}
to the select
Then it is possible to create a custom field that lets us chose product properties.
Next we have to make this change persistent.
See https://developer.shopware.com/docs/guides/plugins/plugins/administration/customizing-components
Shopware.Component.override('sw-custom-field-type-entity', {
computed: {
entityTypes() {
const types = this.$super('entityTypes');
types.push(
{
label: 'Product Property Group',
value: 'property_group'
}
);
return types;
}
}
});