Re: Re: hi quaoar,

Posts: 50
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

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.

--

Erlend Strømsvik
Ny Media AS
erlend@nymedia.no

CSV Import 0.1 Alpha By: CpILL (52 replies) Mon, 09/24/2007 - 13:16