• Resolved sergeylive

    (@sergeylive)


    My suppliers send me formats XML from Yandex. Like this
    <categories>
    <category id=”14933591″>Bags</category>
    <category id=”27714271″ parentId=”14933591″>Woman Bags</category>
    </categories>
    And Offers separately
    <offers>
    <offer available=”true” id=”377637781″>
    <price>249</price>
    <categoryId>36080329</categoryId>
    <picture>jpg.jpg</picture>
    <name>Name example</name>
    <description>description example</description>
    </offer>
    <offer available=”true” id=”383293682″>
    <price>249</price>
    <categoryId>27714271</categoryId>
    <picture>jpg.jpg</picture>
    <name>Name example</name>
    <description>description example</description>
    </offer>
    </offers>

    This is not compatible with the requirement of plugin. What function will help me? I guess that some function if editor of plugin will help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @sergeylive

    Unfortunately, this will require quite a bit of custom code. There is an unofficial guide here that should help: https://gist.github.com/trey8611/b0ab4e02b118fbfe013566c0b62a2944.

    Thread Starter sergeylive

    (@sergeylive)

    Wow. It’s simply. But. As a result, I can not choose Unique Identifier, cause I have one field only. {./@id} cannot be an identifier.
    2019-03-06_2118

    Thread Starter sergeylive

    (@sergeylive)

    Excuse me. It’s work fine. But. This script imports a list of categories in general. At the same time, he does not build hierarchies, as we expect. Poorly. Because parents categories we know.
    So, something like
    For men -> Bags
    -> backpackes
    -> cluthes
    p.s. You need to remember to add a title. Otherwise, the import does not work.
    2019-03-06_2232

    Plugin Author WP All Import

    (@wpallimport)

    Hey @sergeylive

    There is a section in that guide that shows what to put in the “Parent Term” field so that you can import hierarchies. That said, please keep in mind that this is an unofficial general guide, so it’s very possible that you’ll need to modify the workflow/code to get it to work with your data.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Import XML’ is closed to new replies.