[ { "label": "Dropship: When an order contains a product from a certain vendor, send the vendor the order details", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": [ { "conditions": [ { "field": "order.line_items.vendor", "settings": { "multiple": "any", "operator": "equals", "value": "Dropshipper" }, "weight": 999 } ], "actions": [ { "type": "email", "settings": { "wait": "0", "custom_wait": "", "to": "[CLICK TO EDIT]", "cc": "", "bcc": "", "reply_to": "", "subject": "New order from {{ shop.name }}", "plain_text": "1", "body": "Hi there,\r\n\r\nYou have a new order from {{ shop.name }}\r\n\r\nPlease ship the following:\r\n{% for line_item in order.line_items %}\r\n {% if line_item.vendor == \"Dropshipper\" %}\r\n {{ line_item.quantity }} X {{ product_link(line_item.product) }} SKU: {{ line_item.sku }}\r\n {% endif %}\r\n{% endfor %}\r\n\r\nCustomer Information\r\n{{ order.customer.display_name }}\r\n{{ format_address(order.shipping_address, {format: 'plain', country: true, company: false, phone: false}) }}" }, "weight": 999, "target_key": null } ] } ], "shared_workflow_id": 269 }, "description": "This workflow can be used to send custom emails to vendors when an order contains an item from that vendor. This workflow is ideal for sending order information to dropshippers automatically." } ]