vml / magento2-module-customerimport
Customer Import via CSV & JSON
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.3.0
- magento/module-customer: 103.0.*
- magento/module-customer-import-export: 100.4.*
README
Import Customer with cron command in CSV or JSON format
Magento2 Module Vml CustomerImport
``vml/magento2-module-customerimport``
Main Functionalities
Import Customer with cron command which is supplied via CSV or JSON format.
Installation
Type 1: Zip file
-
Unzip the zip file in
app/code/Vml/CustomerImport
-
Enable the module by running
php bin/magento module:enable Vml_CustomerImport
-
Run Magento commands by running
php bin/magento set:upg && php bin/magento set:d:c && php bin/magento set:s:d -f && php bin/magento c:c && php bin/magento c:f
-
Give
var
andpub
folder to 777 permission by runningchmmod -R 0777 var/ pub/
Type 2: Composer
-
Install the module composer by running
composer require vml/magento2-module-customerimport
-
Enable the module by running
php bin/magento module:enable Vml_CustomerImport
-
Run Magento commands by running
php bin/magento set:upg && php bin/magento set:d:c && php bin/magento set:s:d -f && php bin/magento c:c && php bin/magento c:f
-
Give
var
andpub
folder to 777 permission by runningchmmod -R 0777 var/ pub/
Features
Create customers from CSV or JSON file from command line terminal.
Configurations
bin/magento customer:import <profile-name> <source>
So to import from the CSV and the JSON respectively the user would execute either one of the following
profile-name
is 'sample-csv' or 'sample-json'
source
is your file path name added in var/import
folder (eg. 'sample.csv' or 'sample.json')
-
php bin/magento customer:import --help
-
Description: Customer Import via CSV & JSON
-
Usage: customer:import
-
Arguments: profile Profile name ex: sample-csv or sample-json source Source Path ex: sample.csv or sample.json
bin/magento customer:import sample-csv sample.csv
bin/magento customer:import sample-json sample.json
Once we run our customer import script, we also need to make sure to re-index the Customer Grid indexer
`php bin/magento indexer:reindex customer_grid`