sharika / module-customer-import
一个用于从各种数据源导入客户的 Magento 2 模块。
1.0.0
2024-03-22 12:17 UTC
Requires
- php: ~8.2.0
- magento/framework: ^103.0.0
- magento/module-customer: ^103.0.0
This package is not auto-updated.
Last update: 2024-09-21 12:36:53 UTC
README
此模块允许您将来自不同配置文件(CSV、JSON 等)的客户数据导入到您的 Magento 商店。
安装
-
将模块的 zip 文件解压到
app/code/
目录。 -
运行以下命令以启用模块:php bin/magento module:enable Sharika_CustomerImport
-
应用数据库更新:php bin/magento setup:upgrade
-
清除缓存:php bin/magento cache:flush
使用方法和命令
CLI 命令 - JSON 配置文件
-
将
sample.json
文件放入var/import/
目录。 -
运行导入命令:php bin/magento customer:import json var/import/sample.json
CLI 命令 - CSV 配置文件
-
将
sample.csv
文件放入var/import/
目录。 -
运行导入命令:php bin/magento customer:import csv var/import/sample.csv
在运行客户导入脚本后,您需要重新索引客户网格索引器:php bin/magento indexer:reindex customer_grid