Batch create categories


/ Published in: PHP
Save to your folder(s)

First off, create your CSV with 2 columns, the parent ID for the category and the category name – you could easily add more columns for extra options, but it wasn’t necessary for us.

The CSV file should be something like this:

3,subcat
4,subcat2
6,subcat3

Then it should be saved in ./var/import/importCats.csv

Then save the following in ./quickCatCreate.php

URL: http://www.sonassi.com/knowledge-base/quick-script-batch-create-magento-categories/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.