List of available tags


Tags can be inserted into specific fields to automatically generate content. Some tags are only available for certain settings. If the content of a tag is not found or is not available, nothing is displayed.

1. Recipient / beneficiary

These tags can be used for email notifications, in the PDF editor, and for file names (invoice and packing slip).

  • {beneficiary_name}: The name of the beneficiary.
  • {beneficiary_addition}: The name addition of the beneficiary.
  • {beneficiary_street}: The address of the beneficiary.
  • {beneficiary_house_nr}: The house number of the beneficiary
  • {beneficiary_zip}: The postcode of the beneficiary.
  • {beneficiary_city}: The city of the beneficiary.
  • {beneficiary_country}: The country of the beneficiary.

2. Booking

The following tags can be used to insert data of a booking. hese are only available for admin and customer emails (QR-bill > Settings > Emails).

  • {booking.id}: The ID of the booking.
  • {booking.bill_id}: The ID of the associated bill.
  • {booking.wc_order_id}: The ID of the associated WooCommerce order.
  • {booking.account}: The account number of the payee.
  • {booking.amount}: The amount of the booking.
  • {booking.currency}: The currency of the booking.
  • {booking.reference}: The reference number of the booking/bill.
  • {booking.get_formatted_time}: Time and date of the booking.

3. Bill

The following tags can be used to insert data of an associated bill. These tags can be used for email notifications, in the PDF editor, and for file names (invoice and packing slip).

  • {id} or {bill.id}: The ID of the bill.
  • {wc_order_id} or {bill.wc_order_id}: The id of the associated WooCommerce order.
  • {status} or {bill.status}: The payment status of the bill (unpaid, partially paid, paid).
  • {bill.account}: The account number of the payee.
  • {amount} or {bill.amount}: The invoice amount
  • {amount_paid} or {bill.currency}: The amount already paid.
  • {currency} oder {bill.currency}: The currency of the bill.
  • {reference} oder {bill.reference}: The reference number of the bill.
  • {payer_first_name} or {bill.first_name}: The first name of the payer.
  • {payer_last_name} or {bill.last_name}: The last name of the payer.
  • {payer_company}oder {bill.company}: The company name of the payer.
  • {bill.get_company_and_full_name}: Company, first name and last name of the payer.
  • {payer_company_or_name} oder {bill.get_company_or_else_name}: Company name, if any. Otherwise first and last name of the payer.
  • {payer_full_name} oder {bill.get_full_name}: First and last name of the payer.
  • {bill.get_name_and_address}: Payer’s name and address separated by commas.
  • {street} oder {bill.street}: Street and house number of the payer.
  • {zip} oder {bill.zip}: ZIP of the payer.
  • {city} oder {bill.city}: City of the payer.
  • {country} oder {bill.country}: Country of the payer.
  • {email} oder {bill.email}: Email address of the payer.
  • {bill.user_id}: User ID of the assigned user (if any).
  • {time} oder {bill.get_formatted_date}: Time of the bill.
  • {date} oder {bill.get_formatted_date}: Date of the bill.

4. WooCommerce order

All WooCommerce functions or properties of WC_Order that are returned as String, Float or Int can be used. The following tags (and more) are available. These tags can be used for email notifications, in the PDF editor, and for file names (invoice and packing slip).

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

5. Custom Fields

Custom fields of a WooCommerce order can be added by using the tag {custom.[field_name]}. The part [field_name] has to be replaced with the name of the custom field.

6. Eigene Filter

The {filter.[filter_name]} tag can be used to add content using your own code. [filter_name] must be replaced with the name of the filter.

Ex: If the tag {filter.my_custom_filter} is added, the following code can be used (e.g. in the theme’s functions.php file) to add content dynamically:

function my_custom_filter_fct($empty_str, $bill){

$wc_order = $bill->get_wc_order(); // WC_Order object.

  return 'My custom text';

}

add_filter('my_custom_filter', 'my_custom_filter_fct', 10, 2);