order.id - Displays the order ID#
Description#
Use {{ order.id }} to display the internal WooCommerce ID of the order provided by the automation's event.
The order ID may differ from the customer-facing order number if your store uses custom or sequential order numbering. To display that number, use {{ order.order_number }} instead.
Usage#
Insert {{ order.id }} into a field that supports placeholders, such as an email subject or message. The selected event must provide order data.
Example subject:
Update for order #{{ order.id }}
For an order with ID 1234, the result is:
Update for order #1234
The placeholder returns the ID only. Add the # character separately if you want to display it.
Parameters#
This placeholder has no parameters.
Fallback#
This placeholder has no fallback value. If order data is unavailable, it returns an empty string. It does not search for another order belonging to the customer.
