[ { "label": "Email your customer estimated shipping dates when an order is placed", "trigger_type": [ "order_paid" ], "object_type": "order", "app_id": "triggers", "settings": { "priority": 0, "condition_groups": { "1": { "conditions": [], "actions": [ { "type": "email", "settings": { "token_object_type": "order", "to": "SEE \"NOTES\" ABOVE", "cc": "", "bcc": "", "reply_to": "", "subject": "", "plain_text": "0", "body": "Items in your order will ship between \r\n\r\n{{ \"now\" | date_modify(\"+\" ~ workflow_vars[\"minimum_days_from_now\"].value ~ \" days\") | date(\"m\/d\/Y\") }} \r\nand \r\n{{ \"now\" | date_modify(\"+\" ~ workflow_vars[\"maximum_days_from_now\"].value ~ \" days\") | date(\"m\/d\/Y\") }}", "wait": "0", "cw_timezone": "America\/New_York", "custom_wait": "", "run_once": 0 }, "weight": 999, "target_key": "order" } ] } }, "instructions": "## SETUP\r\n\r\n1. Use the Variables section to enter a range of days. \r\n1. Update the email address to use your own email address when testing. When ready to enable the automation, use `{{ order.email }}` to send to your customer.\r\n1. The email is set to use HTML by default so the actual email will ignore any returns. The current formatting is simply for readability. Use HTML line breaks: `
` to add new lines when using the HTML email format. ", "shared_workflow_id": 1153 }, "description": "This email fires when an order is placed. An email is sent to the customer with your pre-determined time period for delivery. The time period is static in this example, however, you could customize it using a time period from a metafield if you'd like.", "variables": { "minimum_days_from_now": { "label": "Minimum Days from Now", "machine_name": "minimum_days_from_now", "type": "triggers_number", "settings": { "can_be_disabled": true, "disabled": false, "attributes": { "width": null, "bulk_ops_editable": 1, "input_instructions": "Enter the minimum number of days from now. The exact date will be calculated in the email.", "description": "", "step": "", "default_value": "10" }, "weight": 8, "validations": [], "conditions": [] } }, "maximum_days_from_now": { "label": "Maximum Days from Now", "machine_name": "maximum_days_from_now", "type": "triggers_number", "settings": { "can_be_disabled": true, "disabled": false, "attributes": { "width": null, "bulk_ops_editable": 1, "input_instructions": "Enter the maximum number of days from now. The exact date will be calculated in the email.", "description": "", "step": "", "default_value": "15" }, "weight": 9, "validations": [], "conditions": [] } } } } ]