[ { "label": "Automatically hide out of stock products and show them when back in stock", "trigger_type": [ "product_updated" ], "object_type": "product", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "product.inventory_quantity_changed", "settings": { "value": "true" }, "weight": 999 }, { "field": "product.inventory_quantity", "settings": { "operator": "lte", "value": "0" }, "weight": 999 } ], "actions": [ { "type": "product_unpublish", "settings": { "wait": "0", "custom_wait": "" }, "weight": 999, "target_key": null }, { "type": "product_add_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "AUTOHIDE" }, "weight": 999, "target_key": null } ] }, { "conditions": [ { "field": "product.inventory_quantity_changed", "settings": { "value": "true" }, "weight": 999 }, { "field": "product.inventory_quantity", "settings": { "operator": "gt", "value": "0" }, "weight": 999 }, { "field": "product.tags", "settings": { "operator": "contains", "value": "AUTOHIDE" }, "weight": 999 } ], "actions": [ { "type": "product_publish", "settings": { "wait": "0", "custom_wait": "" }, "weight": 999, "target_key": null }, { "type": "product_remove_tags", "settings": { "wait": "0", "custom_wait": "", "tags": "AUTOHIDE" }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 1 }, "description": "Removes items you don't have in stock to avoid customer confusion. When it comes back in stock, the product will reappear in your store. " } ]