Mechanic is a development and ecommerce automation platform for Shopify. :)
Use this task to send a staff email, the moment Shopify registers a successful delivery.
Runs Occurs whenever a fulfillment event is created. Configuration includes email recipient, email subject, and email body.
Mechanic is designed to benefit everybody: merchants, customers, developers, agencies, Shopifolks, 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.
(By the way, have you seen our documentation? Have you joined the Slack community?)
shopify/fulfillment_events/create
{% if event.preview %} {% assign fulfillment_event = hash %} {% assign fulfillment_event["status"] = "delivered" %} {% endif %} {% if fulfillment_event.status == "delivered" %} {% action "email" %} { "to": {{ options.email_recipient__email_required | json }}, "subject": {{ options.email_subject__required | json }}, "body": {{ options.email_body__multiline_required | newline_to_br | json }}, "reply_to": {{ shop.customer_email | json }}, "from_display_name": {{ shop.name | json }} } {% endaction %} {% else %} {% log fulfillment_event_status: fulfillment_event.status, fulfillment_name: fulfillment_event.fulfillment.name, order_name: fulfillment_event.order.name %} {% endif %}
Fulfillment {{ fulfillment_event.fulfillment.name | default: "#1234.1" }} has been delivered!
For more details, see order {{ fulfillment_event.order.name | default: "#1234" }} in Shopify: https://{{ shop.domain }}/admin/orders/{{ fulfillment_event.order_id }} Thanks, Mechanic