i have a script that processes a CSV and is ment to make it have the correct column headings for magento.
For some reason when the script puts the rows to the new CSV, its not outputting the category_ids for certain rows. if you open the fixed csv in excel you can see the row with sku 101059 has its cells messed up.
The category_ids are in the array for every row i can see them by printing out the array.
Its just not putting the catagory id into the fixed CSV correctly and i cant work out why.
please download my full script. I have added some code at line 530 to illustrate what i mean.
also if you check the printed output from the array you will see that catagory id is not always in the same position for each row. I dont know why this is.