flancer32 / mage2_ext_demo_import

Demo module for publications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mage2_ext_demo_import

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

About

Demo module for publications

License:GNU General Public License v3.0


Languages

Language:PHP 100.0%