https://github.com/flancer32/mage2_ext_demo_import
Demo module for publications
https://github.com/flancer32/mage2_ext_demo_import
Last synced: about 1 year ago
JSON representation
Demo module for publications
- Host: GitHub
- URL: https://github.com/flancer32/mage2_ext_demo_import
- Owner: flancer32
- License: gpl-3.0
- Created: 2019-01-14T11:34:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-26T12:01:21.000Z (about 6 years ago)
- Last Synced: 2024-04-21T13:52:59.369Z (about 2 years ago)
- Language: PHP
- Size: 2.93 MB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mage2_ext_demo_import
Demo module for [Habr](https://habr.com/ru/post/436020/).
## Installation
```bash
$ 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/`):
```json
[
{
"sku": "...",
"name": "...",
"desc": "...",
"desc_short": "...",
"price": ...,
"qty": ...,
"categories": ["..."],
"image_path": "..."
}
]
```
... then run command:
```bash
$ ./bin/magento fl32:import:prod -t regular
$ ./bin/magento fl32:import:prod -t direct
```