Download the PHP package catgento/magento-2-category-importer without Composer
On this page you can find all versions of the php package catgento/magento-2-category-importer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download catgento/magento-2-category-importer
More information about catgento/magento-2-category-importer
Files in catgento/magento-2-category-importer
Package magento-2-category-importer
Short Description Category Importer for Magento 2
License OSL-3.0 AFL-3.0
Informations about the package magento-2-category-importer
Magento Category Importer for Magento 2 >= 2.1.x
This is a Magento module which adds a new command to the bin/magento shell to import categories from a CSV file.
It has been copied from https://github.com/macopedia/CategoryImporter, but I've removed the new category attribute creation (which is specific for the developer who created the module).
I have also included a custom Magento 1 export shell script (https://gist.github.com/paugnu/2c680ea9f452a5b671e8d3c0f35ca34f) so that you can generate the csv file from your Magento 1 installation.
Installation
Composer
ZIP file
Download the module and unzip it under the folder app/code/Catgento/CategoryImporter.
How to use it
Create a CSV file with the categories information
Mandatory columns:
Optional columns:
You can also add custom columns and specify them when calling the script.
Magento 1 shell script to export the Categories
Copy the shell script from this gist https://gist.github.com/catgento/2c680ea9f452a5b671e8d3c0f35ca34f (exportCategoriesCsv.php) in the shell/ folder of your Magento 1 installation. You only need to execute it from inside that folder and put the output inside csv file like this:
Note:
- This script replaces '"' by '«' and '»'. There are better ways, but I preferred doing it that way to avoid scaping issues.
Import the CSV file in Magento 2
As explained in the Macomedia module, you can use this module by:
All versions of magento-2-category-importer with dependencies
magento/framework Version >=100.0.0
magento/module-backend Version >=100.0.0
magento/module-cron Version >=100.0.0