Tags: Collections, Email, Products
This task watches for newly-created collections, waits a configurable number of days, and then sends a staff email if no orders have been placed for products that are in the new collection.
- View in the task library: tasks.mechanic.dev/send-an-email-alert-if-a-new-collection-has-no-orders-after-x-days
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"email_recipient__required_email": "",
"email_subject__required": "The new collection \"{{ collection.title }}\" has no orders yet",
"email_body__required_multiline": "Hello,\n\nThe collection \"<a href=\"https://{{ shop.domain }}/collections/{{ collection.handle }}\">{{ collection.title }}</a>\" was created on {{ collection.created_at | date: \"%Y-%m-%d\" }}, and no orders have yet been made for products in this collection.\n\nThanks,\nMechanic, for {{ shop.name }}",
"days_to_wait_before_checking__number_required": "2"
}
Learn about task options in Mechanic
shopify/collections/create+{{ options.days_to_wait_before_checking__number_required | default: 2 }}.days
Learn about event subscriptions in Mechanic
This task watches for newly-created collections, waits a configurable number of days, and then sends a staff email if no orders have been placed for products that are in the new collection.
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!