• Hello
    In my xml I have this
    <availability>Διαθέσιμο</availability>
    <availability>Μη Διαθέσιμο</availability>

    That means available – not available

    I use the script
    [str_replace(array(“Διαθέσιμο”,”Μη Διαθέσιμο”),array(“instock”,”outofstock”),{availability[1]})]

    in order to update the stock status but it does not work. It takes all the out of stock products to the Uncategorized category instead of marking them as out of stock

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

    (@wpallimport)

    Hi @savoures,

    in order to update the stock status but it does not work. It takes all the out of stock products to the Uncategorized category instead of marking them as out of stock

    Please switch the str_replace rules like so:

    [str_replace(array("Μη Διαθέσιμο","Διαθέσιμο"),array("outofstock","instock"),{availability[1]})]

    Also, double check to make sure you’re importing the stock status in the Inventory › Stock Status › Set with XPath field: https://d.pr/i/qINQN1, and you’re choosing to only update the “_stock” custom field in the Import Settings: https://d.pr/i/hCSa4F.

    If that doesn’t help, please replicate the issue on a sandbox site at http://www.wpallimport.com/debug/, then open a support request at http://www.wpallimport.com/support/ with the sandbox site URL and a brief description of the issue (or a link to this thread for reference).

Viewing 1 replies (of 1 total)
  • The topic ‘How to update Stock status from xml’ is closed to new replies.