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

Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Gurus, everybody.

That’s why we make it easy to configure automation without code, why we make it easy to tweak the underlying code once tasks are installed, and why we publish it all here for everyone to learn from.

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 %}
Mechanic tasks are written in Liquid, which makes them easy to write and easy to modify. Learn more about our platform.
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 }}