flancer32 / mage2_ext_demo_import
出版物演示模块。
dev-master
2020-05-26 12:01 UTC
Requires
- php: ^7.1
This package is auto-updated.
Last update: 2024-08-26 21:32:52 UTC
README
为Habr提供的演示模块。
安装
$ 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
使用
将导入数据放入./etc/data/products.json
(图片路径与./etc/data/img/
相关)
[ { "sku": "...", "name": "...", "desc": "...", "desc_short": "...", "price": ..., "qty": ..., "categories": ["..."], "image_path": "..." } ]
...然后运行命令
$ ./bin/magento fl32:import:prod -t regular $ ./bin/magento fl32:import:prod -t direct