Skip to content

Latest commit

 

History

History

send-an-email-alert-when-an-incoming-canadian-order-has-an-unsupported-fsa

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Send an email alert when an incoming Canadian order has an unsupported FSA

Tags: Alert, Delivery, Email, Shipping

Useful for Canadian stores with limited shipping zones, this task inspects the FSA (the first three characters of the postal code) for each order's shipping address. If an FSA is found that's not on a preconfigured list, this task sends an email to the recipients of your choice.

Default options

{
  "supported_fsa_values__required_array": [
    "K1A"
  ],
  "email_recipients__required": "",
  "email_subject__required": "Order {{ order.name }} may be out of delivery zone",
  "email_body__required_multiline": "Hi team,\n\nPlease see details for order {{ order.name }}:\n\nhttps://{{ shop.myshopify_domain }}/admin/orders/{{ order.id }}\n\nIt looks like this might be out of our delivery zone!\n\nThanks,\n- Mechanic, for {{ shop.name }}"
}

Learn about task options in Mechanic

Subscriptions

shopify/orders/create

Learn about event subscriptions in Mechanic

Documentation

Useful for Canadian stores with limited shipping zones, this task inspects the FSA (the first three characters of the postal code) for each order's shipping address. If an FSA is found that's not on a preconfigured list, this task sends an email to the recipients of your choice.

The FSA list must be comprised of FSAs in the format 'A1A', without the quotation marks. The FSAs must be separated by commas and no spaces. The FSAs can be entered in any order.

The task will log orders whose FSA was found in the available FSA list.

It also displays the available FSA list in json format to more easily catch if there were errors in inputting the availability list.

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!