flancer32 / mage2_ext_demo_import
Demo module for publications.
Package info
github.com/flancer32/mage2_ext_demo_import
Type:magento2-module
pkg:composer/flancer32/mage2_ext_demo_import
dev-master
2020-05-26 12:01 UTC
Requires
- php: ^7.1
This package is auto-updated.
Last update: 2026-02-27 00:42:46 UTC
README
Demo module for Habr.
Installation
$ cd ${MAGE_ROOT} $ composer require flancer32/mage2_ext_demo_import $ ./bin/magento module:enable Flancer32_DemoImport $ ./bin/magento setup:upgrade $ ./bin/magento setup:di:compile
Usage
Place importing data into ./etc/data/products.json (image paths are related to ./etc/data/img/):
[
{
"sku": "...",
"name": "...",
"desc": "...",
"desc_short": "...",
"price": ...,
"qty": ...,
"categories": ["..."],
"image_path": "..."
}
]
... then run command:
$ ./bin/magento fl32:import:prod -t regular $ ./bin/magento fl32:import:prod -t direct