Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macopedia/categoryimporter
Magento 2 category importer extension
https://github.com/macopedia/categoryimporter
categories category command-line command-line-tool console import importer magento2 magento2-extension magento2-import magento2-module
Last synced: about 1 month ago
JSON representation
Magento 2 category importer extension
- Host: GitHub
- URL: https://github.com/macopedia/categoryimporter
- Owner: macopedia
- Created: 2017-02-23T15:25:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T06:51:55.000Z (about 1 year ago)
- Last Synced: 2024-11-18T09:48:29.252Z (about 2 months ago)
- Topics: categories, category, command-line, command-line-tool, console, import, importer, magento2, magento2-extension, magento2-import, magento2-module
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 34
- Watchers: 16
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CategoryImporter module for Magento 2 >= 2.1.x
Simple category importer from CSV file. Allows to import / update
categories not only from Magento shops (use old shop category ID)# Features
- adds attribute to category 'Old category ID'
- adds possibility to add custom attribute codes by command option
- adds links between parent and child categories (by 'Old category ID')
- work only for admin store (multi stores are not implemented yet)# Install module
- add module via composer or download and copy files to app/code/Macopedia/CategoryImporter
- run bin/magento module:enable Macopedia_CategoryImporter in command line# Usage
**NOTICES:**
- please add parent categories before children in file
- use semicolon (';') as delimiter in file**Attributes supported by default:**
- Required attributes:
* id
* name
* parent_id
- Optional attributes with predefined values:
* is_active - default value: 1
* is_anchor - default value: 1
* include_in_menu - default value: 1
* custom_use_parent_settings - default value: 1
- Base additional attributes:
* description
* meta_title
* meta_keywords
* meta_description
* url_key
* url_path
* position
**Base usage examples**bin/magento import:categories [--path|-p ] [--additional|-a ]
bin/magento import:categories -p var/import/categories-example.csv
bin/magento import:categories -p var/import/categories-example.csv -a my_custom_attribute1,my_custom_attribute2,my_custom_attribute3**Simple CSV file to import categories**
id;name;parent_id
10;Category name 1;null
11;Category name 2;null
20;First child of cat 1;10
21;First child of cat 2;11
22;Second child of cat 2;11