Edit stock value based on expression
-
Hey!
I have an import to update the stock through .CSV. The import should set the stock value on 0 if the field in the .CSV is below 4 or lower, else it should import the value in .CSV
Currently i’m struggling to get this working and tried different expressions in the Woocommerce stock field.What I tried
concat(substring(‘0’, /node/stock_field[1] < “5”), substring(/node/stock_field[1], /node/stock_field[1] >= “5”))
concat(substring(‘0’, 1 div ({stock_field[1]} < 5)), {stock_field[1]} >= 5][1])
Thanks in advance!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Edit stock value based on expression’ is closed to new replies.