I think this line:
if(count($properies_list) == $attribute_count) // 1st case only for now.
needs to be change into this:
if($attrbitute_count > 0 && count($properies_list) == $attribute_count) // 1st case only for now.
Because if not, it will start creating attributes elements in the XML file even though no attributes exists for that class.
Edit:
And while I am at it, I removed the check for products of the same name in the function uc_import_csv_multiform_submit. For us every CSV line is a new product and a lot of products have the same name.



Joined: 08/08/2007