magesource / customerimport
Magesource Customer Import for Magento 2。
dev-main
2024-05-19 11:59 UTC
This package is auto-updated.
Last update: 2024-09-19 12:47:05 UTC
README
使用命令在csv或json文件中导入客户
安装
-
通过运行
composer require magesource/customerimport:dev-main
安装模块 -
通过运行
php bin/magento module:enable Magesource_CustomerImport
启用模块 -
运行以下Magento命令:
php bin/magento set:up;php bin/magento s:d:c;php bin/magento s:s:d -f;php bin/magento c:f
功能
从命令行终端的csv或json文件创建客户。
配置
bin/magento customer:import <profile-name> <source>
要分别从CSV和JSON导入,用户可以执行以下任一命令
profile-name
是'customer-csv'或'customer-json'
source
是添加到var/import
文件夹中的文件路径名(例如,'customer.csv'或'customer.json')
-
php bin/magento customer:import --help
-
描述:通过CSV & JSON导入客户
-
用法:customer:import
-
参数:profile 配置文件名,例如:customer-csv 或 customer-json source 源路径,例如:customer.csv 或 customer.json
bin/magento customer:import customer-csv customer.csv
bin/magento customer:import customer-json customer.json
运行我们的客户导入命令后,还需要确保重新索引客户网格索引器。
`php bin/magento indexer:reindex customer_grid`