1 reply [Last post]
stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Was this information Helpful?

I'm trying to set up my XML file for a massive product import and have been testing it with just one product. The product in question has 2 attributes assigned to it, Format and Sequence Type. Out of 5 options this product has 3 options assigned to it for Format (HD-1080p, HD-720p and PAL) and 2 options for Sequence Type (Image Sequence and QuickTime Movie).

Anyhow, so I'm importing away and everything's working just fine but then I noticed that with each import the XML is creating duplicate attributes.

The below is the XML code for the attributes but I've obviously got something wrong - where am I going wrong?

<attributes><attribute><id>15</id><name>Format</name><ordering>0</ordering><default_option>26</default_option><options><option><id>26</id><name>HD-1080p</name><price>0.00</price><weight>0</weight><ordering>0</ordering></option><option><id>27</id><name>HD-720p</name><price>0.00</price><weight>0</weight><ordering>0</ordering></option><option><id>29</id><name>PAL</name><price>0.00</price><weight>0</weight><ordering>0</ordering></option></options></attribute><attribute><id>16</id><name>Sequence Type</name><ordering>0</ordering><default_option>32</default_option><options><option><id>31</id><name>Image Sequence</name><price>0.00</price><weight>0</weight><ordering>0</ordering></option><option><id>32</id><name>QuickTime Movie</name><price>0.00</price><weight>0</weight><ordering>0</ordering></option></options></attribute></attributes>

thanks in advance,

Ole

stormer's picture
Offline
Joined: 09/16/2007
Juice: 110
Re: Duplicate attributes being created with each import

I think I know what I did wrong - I had deleted the attributes at the beginning of the xml file but had left in the ones at the end of the file. It certainly seems to have resolved the problem.