Macros are used to insert dynamic content into otherwise static email. Macros can be used in email subject, email heading, email content and block content.
The following macros are supported:
- {billing_address_1}
- {billing_address_2}
- {billing_city}
- {billing_company}
- {billing_country}
- {billing_email}
- {billing_first_name}
- {billing_last_name}
- {billing_phone}
- {billing_postcode}
- {billing_state}
- {customer_id}
- {customer_note}
- {formatted_billing_address}
- {formatted_shipping_address}
- {order_customer_details}
- {order_currency}
- {order_date}
- {order_items_table}
- {order_notes}
- {order_number}
- {order_payment_link}
- {order_shipping}
- {order_status}
- {order_total}
- {payment_method_title}
- {shipping_address_1}
- {shipping_address_2}
- {shipping_city}
- {shipping_company}
- {shipping_country}
- {shipping_first_name}
- {shipping_last_name}
- {shipping_method_title}
- {shipping_postcode}
- {shipping_state}
- {total_discount}
Developers can programatically add custom macros if needed - read more on that here.
To insert a macro, simply write it's key with curly brackets wherever you want it's value to appear. You can also insert macros to email content and block content by clicking on the Macros at the top right corner of the editor and clicking on the macro key: