Skip to content

Latest commit

 

History

History

send-an-email-alert-if-a-new-collection-has-no-orders-after-x-days

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Send an email alert if a new collection has no orders after x days

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.

Default options

{
  "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

Subscriptions

shopify/collections/create+{{ options.days_to_wait_before_checking__number_required | default: 2 }}.days

Learn about event subscriptions in Mechanic

Documentation

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.

Installing 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.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!