Rules: SMS on order, payment and shipment in Shopify
Updated:
On this page
A rule is an instruction: “when X happens in the store, send SMS Y”. One event sends at most one SMS, even if Shopify reports it twice.
Five events
In “When to send” you pick one of them:
- “Order placed” (a customer places an order),
- “Order paid” (the store records the payment),
- “Order updated” (the order’s fulfillment status changes to fulfilled, partially fulfilled or restocked; a payment alone is the “Order paid” rule),
- “Order fulfilled” (the store ships the order; the SMS can carry the tracking number and link),
- “Order refunded” (the store refunds the payment).
If you ship an order in several parcels, each fulfillment is a separate event, so the customer gets a separate SMS for each parcel.
Adding a rule
- Open the “Rules” tab. When it is empty you will see three ready-made rules: “Order confirmation”, “Parcel shipped, with its number” and “New order: notify me”. Click “Add” next to one.
- Or click “New rule”.
- In “When to send” choose the event.
- In “To whom” choose “Customer” or “Fixed number”. A fixed number is, for example, your own phone when you want a notification about new orders.
- In “Text” write the SMS. Click the variables above the field, or “More…” to see them all.
- Click “Save rule”.
You can change the “Enabled” switch on a rule at any time, also in the list.
Where the customer’s number comes from
We take the number from the order: first from the shipping address, then from the billing address, and last from the customer record. We store it in international format, based on the order’s country. If an order has no number the SMS does not go out, and in the log you will see “Failed” with the reason.
Variables
A variable is a name in braces that the store replaces with a real value when sending. For example {first_name} becomes the customer’s first name. These are available:
- Customer:
{first_name},{last_name}, - Order:
{order_number},{order_total},{order_status}, - Shipment:
{tracking_number},{tracking_carrier},{tracking_link}, - Shop:
{store_name}.
The shipment variables have a value once the order has a shipment. Use them with the “Order fulfilled” event, because for earlier events they are empty. The counter under the field says, for example, “74 characters · 2 SMS”. You can read about counting in special characters and SMS length.
Advanced
In “Advanced” you set “SMS validity”: from 1 to 72 hours, 12 by default. If the phone stays offline longer, the SMS does not go out rather than arrive too late.
What next
You can check the sent messages in the log. To connect the phone and account, follow installing and connecting.
Related guides
Didn’t find the answer? Contact us