Email templates


Under “Shipment tracking > Email templates”, templates can be defined that are used to carry out actions when certain shipment events occur (see 3. Define actions for shipment events). Email templates are WPML compatible, i.e. when using the multi-language plugin WPML, templates can be translated into other languages and an email will be sent in the recipient’s language (if possible).

The following fields can be defined per template:

Use WooCommerce email template and styles

If this checkbox is activated, emails use the same design as WooCommerce emails.

Send to customer

If this checkbox is activated, the email will be sent to the customer of the WooCommerce order.

Recipient(s)

Here you can enter several email addresses to which the email will be sent. If multiple email addresses are entered, they must be separated with a semicolon (;). If the “Send to customer” checkbox is activated, the email will be sent to the entered recipients as well as to the customer.

Example: customer1@onewebsite.ch; customer2@otherwebsite.ch

Subject

The subject of the email.

Heading (optional)

Heading will be displayed in WooCommerce Headings style if WooCommerce is active. Otherwise it will be formatted as a title.

Message

The content of the email (after the heading). Several tags can be used to insert dynamic content:

  • {event_code} : The post event code of the event that occurred.
  • {event_description} : The description of the event that occurred.
  • {tracking_number} : The tracking number.

In addition, all WooCommerce functions of WC_Order that are returned as String, Float or Int can be used. The first part “get_” of the function name has to be removed in order to get the tag name. The following tags (and more) are available:

  • {wc_order_id} or {id} : The WooCommerce order ID.
  • {formatted_order_total} : Formatted total.
  • {cart_tax} : Tax of the cart.
  • {currency} : Currency as ISO code (e.g. CHF).
  • {discount_tax} : Tax of the discounts.
  • {discount_to_display} : Formatted total of the discounts.
  • {discount_total} : Total of the discounts.
  • {shipping_tax} : Shipping tax
  • {shipping_total} : Shipping total
  • {subtotal} : Subtotal (before discounts, but with localised taxes)
  • {subtotal_to_display} : Formatted subtotal.
  • {total} : Order total.
  • {total_tax} : Total tax.
  • {total_refunded} : Total of the refunds.
  • {total_tax_refunded} : Total taxes of the refunds.
  • {total_shipping_refunded} : Total of the refunded shipping costs.
  • {formatted_billing_address} : Formatted billing address.
  • {formatted_billing_full_name} : Formatted name of the invoice recipient.
  • {formatted_order_total} : Formatted order total.
  • {formatted_shipping_address} : Formatted shipping address.
  • {formatted_shipping_full_name} : Formatted name of the recipient.