Problem with attributes
-
Hello. I have an xml with prodcuts which have differnets attributes.
For example one product has three attributes:
<attributes>
<attr>
<name>Lumens</name>
<text>2600</text>
</attr>
<attr>
<name>Material</name>
<text>Acrylic</text>
</attr>
<attr>
<name>Color</name>
<text>White</text>
</attr>
</attributes>and another has two of this three attributes:
<attributes>
<attr>
<name>Lumens</name>
<text>2900</text>
</attr>
<attr>
<name>Color</name>
<text>Black</text>
</attr>
</attributes>So i create three attributes in wp all import plugin and
in field name i give the name of the slug lumens and i drag the attribute in value {attributes[1]/attr[1]/text[1]}
in second field name i give the name of the slug material and i drag the attribute in value {attributes[1]/attr[2]/text[1]}
and in third field name i give the name of the slug color and i drag the attribute in value {attributes[1]/attr[3]/text[1]}.The problem is that in second product which has two attributes and not three in attribute color instead of take the name of this attribute takes the name of attribute Material but with the right value of black.
I dont know if i have a clear explanation..
I wish you could help me, i made all the imports write and works fine but without the right attributes i can’t import the xml.Thanks in advance and i hope you can help me find out where i am wrong
The topic ‘Problem with attributes’ is closed to new replies.