Xpath IF THEN and set Stock status
-
How to write a short XPath query for importing where if the quantity is > 100, set the stock to instock, otherwise set it to outofstock?
{quantity[1]}I have tried various combinations and I do not understand exactly what the syntax should look like.
How can I test to make sure where I am making a mistake before running import?
My idea:
[IF({quantity[1][.>100]})]instock[ELSE]outofstock[ENDIF]
in WoocommerceAddon -> Inventory -> StockStatus -> Set with XPath
But doesn’t work.
Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Xpath IF THEN and set Stock status’ is closed to new replies.