Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Get Parent During Import

$
0
0

Replies: 0

During the Drag&Drop stage of the import I’m adding fields like this:

{ID[1]}

which are part of xpath /item2

How can I get the value of something that is the xpath that is a level above /item2? It’s not the direct parent, but it’s at the parent level.

I’d imagine it would be something like {..parent[1]} but I can’t seem to figure anything out?

Basically my json looks like:

{
        "Count": 1,
        "Message": "Results returned successfully",
        "Company": "XYZ",
        "Product": [
            {
                "ID": 60,
                "Name": "TRAILERS",
                "NName": "TRAILERS"
            },

And I’d like to import many Product sets but I need the Company attached to each.

Would appreciate any thoughts or ideas.


Viewing all articles
Browse latest Browse all 59525

Trending Articles