Remind customers daily about unpaid orders with Mechanic.

Mechanic is the one-tool-does-it-all automation app for Shopify. :)

Remind customers daily about unpaid orders

by Isaac Bowen (team@usemechanic.com)

This task emails customers right away about unpaid orders, and then continues to email them daily until the order is paid. This task shows off Mechanic's ability to perform repeated delayed actions - it's all super customizable, so get in touch if you have questions. :)

Runs when an order is created and 1 day after user/orders/unpaid_reminder is triggered. Configuration includes subject and body.

15-day free trial – unlimited tasks

Developer details

Events
when an order is created (shopify/orders/create)
1 day after user/orders/unpaid_reminder is triggered (user/orders/unpaid_reminder+1.day)
Options
subject (required), body (multiline, required)
Script
{% if event.topic == "user/orders/unpaid_reminder" %}
  {% assign order = shop.orders[event.data.order_id] %}
{% endif %}

{% if order.financial_status == "pending" %}
  {
    "action": {
      "type": "email",
      "options": {
        "to": {{ order.email | json }},
        "reply_to": {{ shop.customer_email | json }},
        "subject": {{ options.subject__required | json }},
        "body": {{ options.body__multiline_required | strip | newline_to_br | json }},
        "from_display_name": {{ shop.name | json }}
      }
    }
  }

  {
    "action": {
      "type": "event",
      "options": {
        "topic": "user/orders/unpaid_reminder",
        "data": {
          "order_id": {{ order.id | json }}
        }
      }
    }
  }
{% endif %}
Yep, that’s just Liquid! If this is interesting to you, check out our documentation! Mechanic is hugely developer-friendly. :)
Defaults
Subject
Don't forget! Order #{{ order.order_number }} still needs to be paid
Body
Hi there,

Your payment is still required! Please get in touch at {{ shop.customer_email }} to proceed.

Thanks,
{{ shop.name }}