- Create your csv files with this format:
sku,cat1;cat2;cat3;cat4;cat5
- Place your csv files at
/magento_root/var/import/productcategories
- Make sure you set your root category
define('ROOT_CATEGORY', 2);
- Place this file
assignproductstocategories.php
in your magento root folder
- Visit
yourmagentosite.com/assignproductstocategories.php?do=init
to create a queue - Visit
yourmagentosite.com/assignproductstocategories.php?do=updatequeue
to update csv data into queue - Visit
yourmagentosite.com/assignproductstocategories.php?do=process
to process the queue
- You can empty the queue by running
yourmagentosite.com/assignproductstocategories.php?do=resetqueue
magento root category
> cat1
> cat2
> cat3
> cat4
Products with sku
belongs to all these categories