• Hello,

    Thanks for great plugin! I have one question, that i’m not able to resolve during the long time. I need to import the xml file with the next structure:

    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE yml_catalog SYSTEM "shops.dtd">
    <yml_catalog date="2014-06-16 19-01">
    <shop>
    <categories>
    <category id="312">Category</category>
    <category id="374" parentId="312">Child Category</category>
    </categories>
    <offers>
    <offer available="true" original_id="616965" type="vendor.model" id="8124963">
    <categoryId>374</categoryId></offer>
    </offers>
    </shop>
    </yml_catalog>

    So as you can see offer section has node called categoryID, and also all the categories names are listed above the offers. What I’m need is to grab products (that is working as it should) and also grab categories (inluding parent categories) (not the category ids) from this type of xml.

    Thanks in advance

    Plugin: http://ww.wp.xz.cn/plugins/wp-all-import/

    https://ww.wp.xz.cn/plugins/wp-all-import/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Dmitry Georgiev

    (@dmitry-g)

    Maybe that is possible using xpath queries?

    Plugin Author WP All Import

    (@wpallimport)

    It’s not possible because of the way WP All Import is designed. You can’t get data from nodes outside of the tree of nodes you are importing.

    So if you decide to configure your import to import child-elements of <offers> – i.e. one product for each <offer>, you won’t be able to access any data that exists “above” an individual <offer>

    Thread Starter Dmitry Georgiev

    (@dmitry-g)

    Thank you for your response and clarification

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

The topic ‘WP All Import: Category ID’ is closed to new replies.