Remind customers after 7 days about unpaid orders with Mechanic.

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

Remind customers after 7 days about unpaid orders

by Isaac Bowen (team@usemechanic.com)

This task wait for 7 days after an order placed, and – if the order is still unpaid – emails the customer, and optionally adds a tag to the order.

Runs 7 days after an order is created. Configuration includes email subject, email body, and tag to add to the order.

15-day free trial – unlimited tasks

Developer details

Events
7 days after an order is created (shopify/orders/create+7.days)
Options
email subject (required), email body (multiline, required), tag to add to the order
Script
{% unless event.preview %}
  {% assign order = order.reload %}
{% endunless %}

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

  {% if options.tag_to_add_to_the_order != blank %}
    {% capture tags_to_save %}{{ order.tags }}, {{ options.tag_to_add_to_the_order }}{% endcapture %}

    {
      "action": {
        "type": "shopify",
        "options": [
          "update",
          ["order", {{ order.id }}],
          {
            "tags": {{ tags_to_save | json }}
          }
        ]
      }
    }
  {% endif %}
{% endif %}
Yep, that’s just Liquid! If this is interesting to you, check out our documentation! Mechanic is hugely developer-friendly. :)
Defaults
Email subject
Don't forget! Order #{{ order.order_number }} still needs to be paid
Email body
Hi there,

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

Thanks,
{{ shop.name }}