flancer32/mage2_ext_demo_import

Demo module for publications.

dev-master 2020-05-26 12:01 UTC

This package is auto-updated.

Last update: 2024-04-26 20:54:47 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