admin管理员组

文章数量:1125022

I am using "WP ALL IMPORT" to import products through xml. I have 3 different XML's. This proccess is run daily. When editing template XML, in settings of template: 'Other Product options > Post status', there are 3 options to choose 1 of them: 'Published', 'Draft' and 'Set with Xpath'. What i want is products to be set as 'draft' if quantity is less than 3, and 'Published' otherwise. Also everytime import run again (i use auto schedule) the post status has to be updated. I used this expression for 'Set with Xpath': [quantity < 3] => draft | [quantity >= 3] => published, but it doesn't work.

本文标签: woocommerce offtopicWP All ImportSet product product status with xpath