Skip to content

Message templates and variables

Which SMS is sent to each order state, which variables accept the templates and how you only put text for cash on delivery.

Applies to v1.2.18 Updated 5 Nov 2026 2 min read Step 6 of 12
v1.2.18 · WooCommerce 5.0+ · PHP 7.4+ Buy Support

What standard in what condition#

  • Edited → Message for New Order. This is usually where orders arrive with cash out payment and paid by card arrive.
  • Waiting for payment or Standing by → Message for Change in Order Status. This is where the bank deposit lives, for example.
  • Complete → Message for Complete Orderor Message for Store Pickup Order if the order has Pick-up from the store And the template is not empty.
  • Cancelled, refunded or failed → no SMS sent.

Variables#

VariableWhat does it say?
{first_name}, {last_name}Name and surname of the billing data.
{order_number}Order ID.
{order_total}Set as a number, without symbol. Write the € for yourself.
{old_status}, {new_status}The previous and the new situation.
{voucher_code} or {tracking_number}Voucher number, if any.
{tracking_url}The courier monitoring link. SMSAPI is sent as a short SMSAPI link.
{courier_name}The name of the courier, e.g. ACS Courier.

Text only for cash on delivery#

Whatever you write between {if_cod} and {endif_cod} it only appears in orders with cash on delivery.

Example for complete order#

Γεια σας {first_name}, η παραγγελία {order_number} στάλθηκε με {courier_name}. Αριθμός: {voucher_code}. {if_cod}Ποσό αντικαταβολής: {order_total} €. {endif_cod}Παρακολούθηση: {tracking_url}

The “Message for Complete Order” field with template example and variables
The example written in "Message for Complete Order".

If the order number your customers see is different from the ID (e.g. with a numbering plugin), the {order_number} Shows ID.

Did this article help you?
It's not solved?

Send a request; the plugin and the article are automatically completed.

Request support