title | issue | author | author_email | author_github |
---|---|---|---|---|
add-special-fields-for-entity-mapping-in-import-module |
next-16043 |
Malte Janz |
Malte Janz |
- Added the functionality to set user specified default values during an import if the csv field is not set or empty
- Added the functionality to check for user specified required csv fields and log the errors
- Added a new event
Shopware\Core\Content\ImportExport\Event\ImportExportBeforeImportRowEvent
which is fired for each raw CSV row during an import and can modify the row - Added a new
Shopware\Core\Content\ImportExport\Exception\RequiredByUserException
- Added
isRequiredByUser()
,isUseDefaultValue()
andgetDefaultValue()
methods toShopware\Core\Content\ImportExport\Processing\Mapping\Mapping
- Deprecated the
getMappedDefault()
andgetDefault()
methods insideShopware\Core\Content\ImportExport\Processing\Mapping\Mapping
. If you want to use the user specified default value use the new methodgetDefaultValue()
instead.
- Added
systemRequiredFields
object andloadSystemRequiredFieldsForEntity(entity)
method to thesw-import-export-edit-profile-modal
component Which changes based on the selected source entity. - Changed the mapping tab location and block
sw_import_export_edit_profile_modal_tabs_field_mappings
in thesw-import-export-edit-profile-modal
twig template - Deprecated the old mapping tab and block
sw_import_export_edit_profile_modal_tabs_mapping
in thesw-import-export-edit-profile-modal
twig template - Added a new template for the mapping tab in the
sw-import-export-edit-profile-modal
twig template - Added an optional property
systemRequiredFields
to thesw-import-export-edit-profile-modal-mapping
component disable the required switch for system required fields - Added two new columns to mark the field as required by the user and allow specifying a default value to the the
sw-import-export-edit-profile-modal-mapping
component - Changed the template to show the newly added columns and an empty screen in the
sw-import-export-edit-profile-modal-mapping
component - Added a new method
getSystemRequiredFields(entityName, depth)
to theimportExportMapping.service.js
to get all required fields for a given entity