在shopware中,可以使用配置文件导入/导出数据。请参见以下链接。https://docs.shopware.com/en/shopware-en/settings/importexport
现在唯一的问题是我想上传一个自定义实体的数据。我在配置文件中找不到自定义实体。所以我的问题是是否可以通过CSV批量上传此数据?
在shopware中,可以使用配置文件导入/导出数据。请参见以下链接。https://docs.shopware.com/en/shopware-en/settings/importexport
现在唯一的问题是我想上传一个自定义实体的数据。我在配置文件中找不到自定义实体。所以我的问题是是否可以通过CSV批量上传此数据?
2条答案
按热度按时间2cmtqfgy1#
您必须为自定义实体保留导入/导出配置文件:
在这里,您必须将实体字段Map到CSV的列。
如果要影响字段的写入或读取方式,可能需要为实体注册序列化程序。例如,产品实体具有序列化程序:
如果您的实体有一些需要特殊处理的字段,也许可以参考一下序列化程序。
vsikbqxv2#
您必须将实体添加到
vendor/shopware/administration/Resources/app/administration/src/module/sw-import-export/component/sw-import-export-edit-profile-general/index.js
到 * supportedEntities()* 方法
你可以这样做: