Mechanic is a development and ecommerce automation platform for Shopify. :)
This task is here to illustrate managing tracking numbers. If a default tracking number is right for your orders, you can use this task to make sure that one is added the instant a fulfillment is created.
Runs Occurs whenever a fulfillment is created. Configuration includes default tracking number.
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/fulfillments/create
{% if event.preview or fulfillment.tracking_number == blank %} { "action": { "type": "shopify", "options": [ "update", [ "order", {{ fulfillment.order_id | json }}, "fulfillment", {{ fulfillment.id | json }} ], { "tracking_number": {{ options.default_tracking_number__required | json }} } ] } } {% endif %}