• Resolved RandomDude

    (@gazuots)


    Hello,
    Is it possible to merge 2 stocks into 1?
    Example:
    Location1: 5qty
    Location2: 2qty

    In XML import file there is 2 locations. Is it possible to just Location1 + Location2 with import plugin and then show amount in woo stock inventory?

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

    (@wpallimport)

    Hey @gazuots,

    In XML import file there is 2 locations. Is it possible to just Location1 + Location2 with import plugin and then show amount in woo stock inventory?

    As long as both values are available in the same import file, you can use the MATH function in the import template, e.g.:

    [MATH({location1[1]},"+",{location2[1]})]
    Thread Starter RandomDude

    (@gazuots)

    They are in same XML file, but its not working. Or maybe because it is like this?
    <stocks>
    <location1>10</location1>
    <location2>5</location2>
    </stocks>

    Thread Starter RandomDude

    (@gazuots)

    It worked, i had to modify your code, thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Merge multiple stocks, same sku’ is closed to new replies.