Hi,
I know you can't add the products one at a time. That's the goal of the import system to add a whole bunch of products together in one go. So it doesn't change what I said so far.
And you can't pre create the categories via the interface ? Will the categories change in the future ?
If yes, then I do understand that you want to have the CSV embed the hierarchy of the categories in it.
In that case, you can have empty lines at the begining of your CSV with just the categories hierarchy and then just mention the categories in the products.
For example:
parent_category,categories,product_name
FOOTWEAR,FOOTWEAR_MENS,
FOOTWEAR,FOOTWEAR_WOMENS,
FOOTWEAR_MENS,FOOTWEAR_MENS_DRESS,
FOOTWEAR_MENS,FOOTWEAR_MENS_SPORTS,
,FOOTWEAR_MENS_DRESS,product 1 in the dress category
,FOOTWEAR_WOMENS,product 2 in the womens category
as you can see the first few lines are only for constructing the category tree, and the two last lines are adding the products directly to the correct category without having to specify the category structure.