• Resolved amc11

    (@amc11)


    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=0

    https://www.dropbox.com/s/w0oj2dmnz2hl960/fdfgr.png?dl=0

    Product page for a product variations:
    https://www.dropbox.com/s/hqctjnlrflpa06a/fgfsdedsas.png?dl=0

    Strange adds the size in ArticleNr:
    https://www.dropbox.com/s/643fsp1v362h4og/afdssafdfafd.png?dl=0

    Strange 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>

    • This topic was modified 8 years, 7 months ago by amc11.
    • This topic was modified 8 years, 7 months ago by amc11.
    • This topic was modified 8 years, 7 months ago by amc11.
    • This topic was modified 8 years, 7 months ago by amc11.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @amc11

    I sincerely apologize for the delay in response.

    We’ll need to take a look at the full data file and your import settings to advise on how to properly import the size variations. Please reproduce your import at http://www.wpallimport.com/debug/ and open a support ticket at http://www.wpallimport.com/support/ with the details.

    Again, I am sorry that we didn’t respond to this sooner.

    Thread Starter amc11

    (@amc11)

    Hi!

    Thanks, but i’ve already gotten the support we need from your team.
    It took a while, but it was pretty complicated also. For people here that are struggling with this, there is way to get around it.

    Within the WooCommerce Add-on for WP All Import go to variations start with the variation path: {variants[1]/item_2/sizes/item_4} For example getting a value in a previous part in the three hierarchy you can use for example {../../store_id[1]}-{sku[1]} Add the regular stuff: {quantity[1]} {price[1]} etc.

    Plugin Author WP All Import

    (@wpallimport)

    Thanks for the update, @amc11 – I’m glad you were able to get this sorted!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problematic structure XML – Variation Attributes’ is closed to new replies.