• Resolved axelmktg

    (@axelmktg)


    I would like to create a loop that would combine two variables for example, i have the following xml, that i would like to import:

    <row>
    <item>a</item>
    <price>1</price>
    <item>b</item>
    <price>2</price>
    </row>

    I would like to create a loop that would produce the following output:

    <item1> = <price1>
    <item2> = <price2>

    Thus far, all of my attempts had resulted in the following, which is incorrect:

    <item1><item2> = <price1><price2>

    Dear support, please assist with creating a loop that would produce the desirable output.

    Many thanks.

    Axel.

    https://www.ads-software.com/plugins/wp-all-import/

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

    (@wpallimport)

    Hi Axel.

    I don’t think that would be possible using our built in FOREACH loops alone, but I’m not 100% sure.

Viewing 1 replies (of 1 total)
  • The topic ‘foreach loop through multiple variables’ is closed to new replies.