Tags: Alert, Email, Orders, Products
This task sends an email notification, immediately after an order is paid - if a product in the order has a title matching the product title you configure. Optionally, configure this task with a delay, in days, to wait before sending the email. (The task will not send any emails for orders that have since been cancelled.)
- View in the task library: tasks.mechanic.dev/email-someone-when-certain-product-purchased
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"product_title__required": null,
"email_address__required": null,
"email_subject__required": null,
"email_body__multiline_required": null,
"reply_to_email_address": null,
"number_of_days_to_wait_before_emailing__number": null
}
Learn about task options in Mechanic
{% assign delay_days = options.number_of_days_to_wait_before_emailing__number %}
shopify/orders/paid{% if delay_days != blank %}+{{ delay_days }}.days{% endif %}
Learn about event subscriptions in Mechanic
This task sends an email notification, immediately after an order is paid - if a product in the order has a title matching the product title you configure. Optionally, configure this task with a delay, in days, to wait before sending the email. (The task will not send any emails for orders that have since been cancelled.)
YouTube: See the upgrade process for this task!
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!