magesource/customerimport

Magesource Customer Import for Magento 2。

安装: 4

依赖项: 0

建议者: 0

安全: 0

星星: 1

关注者: 2

分支: 0

开放问题: 0

类型:magento2-module

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
  • 您可以在本模块的files文件夹中找到csvjson文件。

运行我们的客户导入命令后,还需要确保重新索引客户网格索引器。

`php bin/magento indexer:reindex customer_grid`