Support » Plugin: Import any XML or CSV File to WordPress » Set Stock status with XPath

  • Hi
    I can’t understand how to use XPath to get Stock Status
    My XML file looks like this

    <data>
    <product>
    <name>sdfsdfsd</name>
    <price>100.0</price>
    <available>instock</available
    </product>
    <product></product>

    <product></product>
    </data>

    I tried to use several XPath to get stock status:
    ./available/text()
    /available/text()
    //data/product/available/text()

    In each case, I’ve got out of stock status. What am I doing wrong? Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Set Stock status with XPath’ is closed to new replies.