Download the PHP package dadolun95/magento2-category-import without Composer
On this page you can find all versions of the php package dadolun95/magento2-category-import. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dadolun95/magento2-category-import
More information about dadolun95/magento2-category-import
Files in dadolun95/magento2-category-import
Package magento2-category-import
Short Description Category Import by csv module
License OSL-3.0 AFL-3.0
Informations about the package magento2-category-import
Dadolun_CategoryImport module for Magento 2
Category importer from CSV file. This is a basic example and startup for more detailed category imports. Allows to import / update categories from Magento shops. Generates and updates categories by specified textual path. Path also defines hierarchy between categories.
Features
- Adds category_code attribute for mapping
- Import categories from uploaded csv file matching paths made with category names
- Works only for admin store, categories are generated as available for each store
Install module
- add module via composer or download and copy files to app/code/Dadolun/CategoryImport
- run bin/magento module:enable Dadolun_CategoryImport in command line
How to extend
This module is easily extendible adding additional attribute on import. Steps you should do:
- Add your columns to the csv
-
Add category_import.xml file on your custom module like this:
- Make a plugin on Dadolun\CategoryImport\Model\Importer\Category manageAdditionalCategoryData method
Your method must add data to the loaded Category like manageAdditionalCategoryData original method. You can change the order of the additional attributes setting the "sort" attribute on column tags. Keep in mind that the original csv structure has 5 columns so you must start from column 6 with your attributes.
Usage
NOTICES:
- keep in mind that parent categories must specified first or you'll get errors on execution
- use comma (',') as delimiter in file or change it by configuration on Stores > Configuration > Dadolun > Category Import
Basic usage example
Simple CSV file example
Contributing
Contributions are very welcome. In order to contribute, please fork this repository and submit a pull request.