Problematic structure XML – Variation Attributes
-
Hi,
So I have this XML of course starting with
<item_0> This is only one of many product, so there
is also item_1, item_2 and so on. But no we only focus
on one product within the xml tree.Further down we have this structure. Variants is one
of item_0 children. We run the xPath option for Variants.
All goes good until we try to get the sizes….Variations XPath is: {variants[1]/item_2[*]}
For SKU: {sizes[1]/item_4[1]/sku[1]}…and so on until we reach sizes variation attributes.
For stores: {store_name[1]}
Sizes we have this:
{sizes[1]/item_4[1]/size[1]}^
That one doesn’t work. We picked it from the XML tree option that
pops up. We also tried {sizes[1]/item_4[*]/size[1]} but then it only
adds the sizes with comma separated in one variant.
Ok so it turns out the stores are added, but for some it
say “Any of the…” of the product pages variants after import.
It adds two droplists. The first with all the stores, the
one with sizes only adds one size in droplist for all
variants. See pictures:WP ALL Import:
https://www.dropbox.com/s/pu6120by3jfs3g1/fgrdfgrre.png?dl=0https://www.dropbox.com/s/w0oj2dmnz2hl960/fdfgr.png?dl=0
Product page for a product variations:
https://www.dropbox.com/s/hqctjnlrflpa06a/fgfsdedsas.png?dl=0Strange adds the size in ArticleNr:
https://www.dropbox.com/s/643fsp1v362h4og/afdssafdfafd.png?dl=0Strange looking ArcticleNr here too:
https://www.dropbox.com/s/upzvs3hyf8knq3f/feafasdfasdfa.png?dl=0<variants>
-<item_2>
<store_id>103</store_id>
<store_name>Store name</store_name>
<store_active>1</store_active>
<stock_location/>
<timestamp>2017-11-06 13:33:14</timestamp>
-<sizes>
-<item_4>
<sku>72658-21</sku>
<size>36</size>
<size_converted/>
<quantity>1</quantity>
</item_4>
+<item_4></item_4>
+<item_4></item_4>
+<item_4></item_4>
</sizes>
</item_2>
-<item_2>
<store_id>106</store_id>
<store_name>Burestads</store_name>
<store_description>Burestads</store_description>
<store_name_webshop>Burestads</store_name_webshop>
<store_active>1</store_active>
<stock_location/>
<timestamp>2017-11-08 13:01:33</timestamp>
-<sizes>
-<item_4>
<sku>72658-21</sku>
<size>36</size>
<size_converted/>
<quantity>1</quantity>
</item_4>
+<item_4></item_4>
+<item_4></item_4>
+<item_4></item_4>
</sizes>
</item_2>
+<item_2></item_2>
+<item_2></item_2>
+<item_2></item_2>
</variants>
The topic ‘Problematic structure XML – Variation Attributes’ is closed to new replies.