Template Variables

Aus Beds24 Wiki
Zur Navigation springen Zur Suche springen
Diese Seite erklärt wie Template Variablen genutzt werden können. 

Template Variablen (short codes) können als Platzhalter für Informationen aus der Buchung eingesetzt werden. Kopieren sie sie exakt wie angegeben (inklusive der eckigen Klammern) in an die Stelle des Texts an dem sie die Information aus der Buchung einfügen möchten.

1 Template Variablen Unterkunft

[PROPERTYNAME] - property name / Name Unterkunft

[PROPERTYADDRESS] - property full address / vollständige Adresse Unterkunft

[PROPERTYCITY] - property city / Stadt Unterkunft

[PROPERTYSTATE] - property state / Bundesstaat Unterkunft

[PROPERTYCOUNTRY] - property country / Land Unterkunft

[PROPERTYEMAIL] - property email / Email Unterkunft

[PROPERTYWEB] - property web site / Website Unterkunft

[PROPERTYPHONE] - property phone / Telefon Unterkunft

[PROPERTYFAX] - property fax / Fax Unterkunft

[PROPERTYID] - property id number / ID Unterkunft

[PROPERTYPOSTCODE] - property post code / Unterkunft Postleitzahl

[PROPERTYCURRENCYFRONT] - property currency symbol before number / Unterkunft Währungssymbol vor der Zahl

[PROPERTYCURRENCYBACK] - property currency symbol after number / Unterkunft Währungssymbol hinter der Zahl

[PROPERTYLATITUDE] - property latitude / Unterkunft Breitengrad

[PROPERTYLONGITUDE] - property longitude /Unterkunft Längengrad

[PROPERTYLOCATIONDESCRIPTION] - property location description / Unterkunft Lagebeschreibung

[PROPERTYHEADLINE] - property headline / Unterkunft Headline

[PROPERTYDESCRIPTION] - property description / Unterkunft Beschreibung

[PROPERTYLEGALPOLICY] - property rental policy / AGB

[PROPERTYCANCELPOLICY] - property cancellation policy / Stornoregeln

2 Template Variablen Einheit

[ROOMNAME] - room name / Name Einheit

[ROOMNAME1] - room name of first booked room / Name der ersten gebuchten Einheit

[ROOMNAMES] - a comma separated list of all room types booked / eine kommagetrennte Liste aller gebuchten Einheitstypen

[ROOMNAMEOFFER] - room names of all booked rooms with offer name / Nemen aller gebuchten Einheit mit Name Offerte

[ROOMTYPEDESC] - room accommodation type / Unterkunftstyp erste gebuchte Einheit

[ROOMTYPEDESCS] - room accommodation type all booked rooms / Unterkunftstyp alle gebuchten Einheiten

[INTERNALROOMNAME] - internal room name as used in the control panel, this is not the translated room name shown on the booking page

[ROOMID] - room id number / ID Einheit

[ROOMMETAAUXTEXT] - room meta auxiliary text setting / Einheit interner Text erste gebuchte Einheit

[ROOMMETAAUXTEXTS] - - room meta text setting for all booked rooms / Einheit interner Text alle gebuchten Einheiten

[OFFERNAME] - booked offer name for all booked rooms / Name der gebuchten Offerte

[OFFERSUMMARY] - offer summary for all booked rooms / zusammenfassender Text der gebuchten Offerte

[UNITNAME] - unit names of all the assigned room types / Name aller Einheiten dieses Einheitstyps

[UNITNAME:1] - additional information about the unit for all the assigned room types / zusätzliche Information für die Einheit

[UNITNAME1] - unit name of the first assigned room / Name einer ersten Einheit eines Typs

[UNITNAME1:1] - additional information about the first assigned room / Zusätzliche Information zur ersten ersten zugewiesenen Einheit

3 Template Variablen Buchung

[BOOKID] - booking reference / Referenznummer

REFERENCENUMBER] - booking reference / Referenznummer

[FIRSTNIGHT] - first night booked / erste gebuchte Nacht

[FIRSTNIGHTSHORT] - first night booked in 1 Apr 2016 format / erste gebuchte Nacht kurz

[FIRSTNIGHT:+1day] - offset from first night / erste Nacht plus/minus x days

[LASTNIGHT] - last night booked / letzte gebuchte Nacht

[LASTNIGHT:+1day] - offset from last night / letzte Nacht plus/minus x days

[LEAVINGDAY] - check-out day / Abreisetag

[LEAVINGDAY:+1day] - offset from check-out / Abreisetag plus/minus x days

[NUMROOM] - the quantity of rooms booked (first room type only) /Anzahl gebuchter Einheiten (nur erster Einheitstyp)

[NUMROOMS] - the quantity of rooms booked (sum of all rooms and room types) / Anzahl der gebuchten Einheien (alle Einheiten und Typen)

[NUMADULT] - number of adults / Anzahl Erwachsene in dieser Einheit oder in der Gruppe der Masterbuchung

[NUMADULT1] - number of adults in this room / Anzahl Erwachsene in dieser Einheit

[NUMCHILD] - number of children / Anzahl Kinder in dieser Einheit oder in der Gruppe der Masterbuchung

[NUMCHILD1] - number of children in this room / Anzahl Kinder in dieser Einheit

[NUMPEOPLE] - number of guests / Anzahl Gäste in dieser Einheit oder in der Gruppe der Masterbuchung

[NUMPEOPLE1] - number of people in this room / Anzahl Gäste in dieser Einheit

[RATEDESC] - rate description / Preisbezeichnung

[RATEDESCBR] - rate description with line breaks / Preisbezeichnung mit Zeilenumbruch

[PRICE] - Price / Preis (Wert der im Preisfeld der Buchung eingetragen wurde)

[PRICENC] - Price / Preis (Wert der im Preisfeld der Buchung eingetragen wurde) ohne Währung

[PRICE:10%] - Percentage value of Price / Prozentualer Anteil des Preises

[PRICE:-10] - Price with offset amount / Preis mit Auf/Abschlag

[AVPRICE] - Average Nightly Price / durchschnittlicher Preis pro Nacht

[AVPRICE:20%] - Percentage value of Average Nightly Price / Anteil des durchschnittlichen Preises pro Nacht

[AVPRICE:15] - Average Nightly Price with offset amount / durchschnittlicher Preis pro Nacht mit Auf/Abschlag

[DEPOSIT] - Value in deposit field / Anzahlung im Anzahlungsfeld

[TAX] - Value in tax field / Steuer

[COMMISSION] - Value in commission field / Provision

[PAYPALURL] - Creates a Paypal payment url for the amount in the booking deposit field if non zero, otherwise the outstanding balance / Fügt eine Paypal URL über den Betrag, den sie im Feld "Anzahlung" im Reiter "Kosten und Zahlungen" der Buchung eingetragen haben angefordert. Wenn sie dort keinen Betrag eingegeben haben, nimmt das System den "Zu zahlen" Betrag.

[PAYPALURL:25%] - Creates a Paypal payment url for a percentage of the outstanding balance / Fügt eine Paypal URL über einen Prozentsatz der zu zahlenden Betrages ein.

[PAYPALURL:200] - Creates a Paypal payment url for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount / Fügt eine Paypal URL über einen fixen Betrag ein. Wird Null eingegeben zeigt Paypal ein Feld ein, in dem ein Betrag eingegeben werden kann.

[PAYPALLINK] - Creates a Paypal payment link for the amount in the booking deposit field if non zero, otherwise the outstanding balance / Fügt einen Paypal Link (HTML A tag) über den Betrag, den sie im Feld "Anzahlung" im Reiter "Kosten und Zahlungen" der Buchung eingetragen haben angefordert. Wenn sie dort keinen Betrag eingegeben haben, nimmt das System den "Zu zahlen" Betrag.

[PAYPALLINK:25%] - Creates a Paypal payment link for a percentage of the outstanding balance / Fügt einen Paypal Link (HTML A tag) über einen Prozentsatz der zu zahlenden Betrages ein.

[PAYPALLINK:200] - Creates a Paypal payment link for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount / Fügt einen Paypal Link (HTML A tag) über einen fixen Betrag ein. Wird Null eingegeben zeigt Paypal ein Feld ein, in dem ein Betrag eingegeben werden kann.

[PAYPALBUTTON] - Adds a Paypal payment button to an Auto Action Email / Fügt einen Paypal Button über den Betrag, den sie im Feld "Anzahlung" im Reiter "Kosten und Zahlungen" der Buchung eingetragen haben angefordert. Wenn sie dort keinen Betrag eingegeben haben, nimmt das System den "Zu zahlen" Betrag.

[PAYPALBUTTON:25%] - Creates a Paypal payment link for a percentage of the outstanding balance / Fügt einen Paypal Link über einen Prozentsatz der zu zahlenden Betrages ein.

[PAYPALBUTTON:200] - Creates a Paypal payment link for a fixed amount. A zero amount will cause paypal to provide a field to enter an amount / Fügt einen Paypal Link über einen fixen Betrag ein. Wird Null eingegeben zeigt Paypal ein Feld ein, in dem ein Betrag eingegeben werden kann.


[GUESTNAME] - name to the guest / Name des Gasts

[GUESTFIRSTNAME] - firstname to the guest / Vorname des Gasts

[GUESTFULLNAME] - lastname to the guest / Nachname des Gasts

[GUESTEMAIL] - guests Email / Email des Gasts

[GUESTPHONE] - guests phonenumber / Telefonnummer des Gasts

[GUESTADDRESS] - guests address / Adresse des Gasts

[GUESTPOSTCODE] - guests postcode / Postleitzahl

[GUESTCITY] - guests city / Stadt

[GUESTCOUNTRY] - guests country / Land des Gasts

[GUESTMOBILE] - guests mobilenumber / Mobilnummer des Gasts

[GUESTFAX] - guests faxnumber / Faxnummer des Gasts

[GUESTARRIVALTIME]- arrivaltime / Ankunftszeit

[GUESTCOMMENTS] - comments in the booking / Kommentare in der Buchung

[GUESTCUSTOMQ1] - answer to custom question 1 / Antwort auf individuelle Frage 1

[GUESTCUSTOMQ2] - answer to custom question 2 / Antwort auf individuelle Frage 2

[GUESTCUSTOMQ3] - answer to custom question 3 / Antwort auf individuelle Frage 3

[GUESTCUSTOMQ4] - answer to custom question 4 / Antwort auf individuelle Frage 4

[GUESTCUSTOMQ5] - answer to custom question 5 / Antwort auf individuelle Frage 5

[GUESTCUSTOMQ6] - answer to custom question 6 / Antwort auf individuelle Frage 6

[GUESTCUSTOMQ7] - answer to custom question 7 / Antwort auf individuelle Frage 7

[GUESTCUSTOMQ8] - answer to custom question 8 / Antwort auf individuelle Frage 8

[GUESTCUSTOMQ9] - answer to custom question 9 / Antwort auf individuelle Frage 9

[GUESTCUSTOMQ10] - answer to custom question 10 / Antwort auf individuelle Frage 10

[GUESTLANGUAGE] - guest language / Sprache

[REFERRER] - Referrer / Referrer

[ORIGINALREFERRER] - Originalreferrer / Originalreferrer

[APIREF] - the booking number at the originating channel

[NOTES] - notes / Notizen

[MESSAGE] - the content of the booking message field

[REFERENCE] - content of the booking reference field

[STATUS] - status of booking / Buchungsstatus

[FLAG] - Flag / Buchungshighlight

[CANCELURL] - URL to view and cancel bookings / URL um Buchungen einzusehen und zu stornieren

[CURRENTDATE] - current date / aktuelles Datum

[CURRENTTIME] - current time / aktuelle Zeit

[BOOKINGDATE] - booking date / Tag der Buchung

[BOOKINGTIMEDATE] - booking date and time / Tag und Uhrzeit der Buchung

[BOOKINGDATE:+1day] - offset from booking date / Tag der Buchung plus/minus xdays

[BOOKINGIP] - ip address of booker's computer / IP Adresse des Computers von dem gebucht wurde

[VIEWBOOKING] - create a URL to log into the control panel and view this booking (for hosts, not intended to be sent to guests)

[EMAIL:00] - Email status to display in the hover text of a booking. Replace 00 with the number of the Email template / Email status der im Hover Text der Buchung angezeigt wird. Ersetzen sie 00 mit der Nummber des Email Templates.

[RANDOM1] - a 1 digit random number seeded from the booking number / Zufällige einstellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM2] - a 2 digit random number seeded from the booking number / Zufällige zweitellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM3] - a 3 digit random number seeded from the booking number / Zufällige dreitellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM4] - a 4 digit random number seeded from the booking number / Zufällige vierstellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM5] - a 5 digit random number seeded from the booking number / Zufällige fünfstellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM6] - a 6 digit random number seeded from the booking number / Zufällige sechsstellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM7] - a 7 digit random number seeded from the booking number / Zufällige siebenstellige Zahl abgeleitet aus der Buchungsnummer

[RANDOM8] - a 8 digit random number seeded from the booking number / Zufällige achtstellige Zahl abgeleitet aus der Buchungsnummer

4 Template Variablen Rechnung

[INVOICENUMBER] - invoice number / Rechnungsnummer

[INVOICEDATE] - invoice date / Rechnungsdatum

[INVOICEBALANCE] - invoice balance / Rechnungssumme

[INVOICEBALANCENUM] - As per [INVOICEBALANCE] but the value is displayed with a decimal point and no thousands separator./ Wie [INVOICEBALANCE] aber in englischem Zahlenformat.

[INVOICEBALANCE:50%] - percentage of invoice balance / Prozenutaler Anteil der Rechnungsumme

[INVOICEBALANCE:-100] - invoice balance with offset amount / Rechnungssumme mit einer Anpassung

[INVOICEPARTBALANCE:status1,status2,status4:10%] - Calculate the balance of all invoice items with matching status, the status items can be a comma separated list. To exclude status items prefix them with an exclamation mark, for example !status1 / Kalkuliert die Rechnungssumme mit allen passenden Statuseinträgen (z.B. aus Upselling). Um Posten auszuschließen setzen sie ein Ausrufungszeichen davor z.B. !status1. Wird am Ende ein Prozentwert eingegeben, wird dieser Prozentwert automatisch kalkuliert

[INVOICEPARTBALANCENUM:status1,status2,status4:10%] - As per INVOICEPARTBALANCE but the value is displayed with a decimal point and no thousands separator. / Wie [INVOICEPARTBALANCE] aber in englischem Zahlenformat.

[INVOICECHARGES] - invoice sum of all charges / Summe aller Kosten

[INVOICECHARGESNUM] - As per [INVOICECHARGES] but the value is displayed with a decimal point and no thousands separator. / Wie [INVOICECHARGES] aber in englischem Zahlenformat.

[INVOICEPAYMENTS] - invoice sum of all payments / Summe aller Zahlungen

[INVOICEPAYMENTSNUM] - As per [INVOICEPAYMENTS] but the value is displayed with a decimal point and no thousands separator. / Wie [INVOICEPAYMENTS] aber in englischem Zahlenformat.

[INVOICECREDITS] - invoice sum of all credit items / Gesamtsumme aller negativen Rechnungsposten (Rabatte, Anzahlungen)

[INVOICECREDITSNUM] - As per [INVOICECREDITS] but the value is displayed with a decimal point and no thousands separator. Wie [INVOICECREDITS] aber in englischem Zahlenformat.

[INVOICEDEBITS] - tinvoice sum of all debit items / Gesamtsumme aller positiven Rechnungsposten

[INVOICEDEBITSNUM] - As per [INVOICEDEBITS] but the value is displayed with a decimal point and no thousands separator. Wie [INVOICEDEBITS] aber in englischem Zahlenformat.

[INVOICETABLE] - invoice table / Rechnungstabelle

[INVOICETABLE:$1.1$] - invoice table and currency multiplier with optional new currency symbol before or after price. / Rechnungstabelle mit Währungsmultiplikator und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICETABLE2] - invoice table with status field / Rechnungstabelle mit Statusfeld

[INVOICETABLE2:$1.1$] - invoice table with status field and currency multiplier with optional new currency symbol before or after price. / Rechnungstabelle mit Statusfeld und Währungsmultiplikator und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICETABLECHARGES] - invoice table showing charges only / Rechnungstabelle nur Kosten

[INVOICETABLENOTOT] - invoice table without grand total / Rechnungstabelle ohne Gesamtsumme

[INVOICETABLENOTOT:$1.1$] - invoice table without grand total and currency multiplier with optional new currency symbol before or after price. / Rechnungstabelle ohne Gesamtsumme und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICETABLENOTOT2] - invoice table with status field without grand total / Rechnungstabelle ohne Gesamtsumme mit Statusfeld

[INVOICETABLENOTOT2:$1.1$] - invoice table with status field without grand total and currency multiplier with optional new currency symbol before or after price. / Rechnungstabelle ohne Gesamtsumme mit Statusfeld und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICETABLEVAT] - invoice table with vat information / Rechnungstabelle mit Mehrwertsteuer zusammengefasster Mehrwertsteuer

[INVOICETABLEVATNOSUM] - invoice table with vat information without vat summary / Rechnungstabelle mit Mehrwertsteuer ohne zusammengefasste Mehrwertsteuer

[INVOICETABLEDATEVATNOSUM] - invoice table with vat information and date without vat summary / Rechnungstabelle mit Datum und Mehrwertsteuer ohne zusammengefasste Mehrwertsteuer

[INVOICETABLEVAT:$1.1$] - invoice table with vat information and currency multiplier with optional new currency symbol before or after price. / Rechnungstabelle mit Mehrwertsteuer und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICETABLEVAT2] - invoice table with vat information and status field /Rechnungstabelle mit Mehrwertsteuer und Statusfeld und zusammengefasster Mehrwertsteuer

[INVOICETABLEVAT2VATNOSUM] - invoice table with vat information and status field and vat summary ohne zusammengefasste Mehrwertsteuer

[INVOICETABLEVAT2:$1.1$] - invoice table with vat information and status field and currency multiplier with optional new currency symbol before or after price. /Rechnungstabelle mit Mehrwertsteuer und Statusfeld und optional anderem Wähungssymbol vor oder hinter dem Wert.

[INVOICEVAT] - invoice sum of all vat value / gesamte in der Rechung enthaltene Mehrwertsteuer

5 Mathematische Variablen

Setzen sie eine mathematische Template Variable zwischen zwei numerische Template Variablen.

[+] - will add the two numbers either side of the template variable / addiert die beiden Zahlen links und rechts von [+]

[-] - will subtract the number right of the template variable from the number left / subtrahiert die beiden Zahlen links und rechts von [-]

[*] - will multiply the two numbers either side of the template variable / multipliziert die beiden Zahlen links und rechts von [*]

[/] - will divide the number left of the template variable by the number right / dividiert die beiden Zahlen links und rechts von [/]

 Hinweis: Die mathematischen Variablen funktionieren nur mit Zahlen die einen Dezimalpunkt haben und keinen Separierung für Tausender.

6 strf Time Variablen

Sie können PHP strftime nutzen um Datenformete zu formatieren. Information über PHP strftime Strings finden sie unter [1]

[FIRSTNIGHT:{%A, %e %B, %Y}] - first night booked / erste gebuchte Nacht

[FIRSTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string / Datum plus/minus x Tage und Darstellung mit gültigem PHP strftime String

[LASTNIGHT:{%A, %e %B, %Y}] - last night booked / letzte gebuchte Nacht

[LASTNIGHT:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string / Datum plus/minus x Tage und Darstellung mit gültigem PHP strftime String

[LEAVINGDAY:{%A, %e %B, %Y}] - check-out / Abreisetat

[LEAVINGDAY:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.

[CURRENTDATE:{%A, %e %B, %Y}] - current date / aktuelles Datum

[CURRENTDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string / Datum plus/minus x Tage und Darstellung mit gültigem PHP strftime String

[BOOKINGDATE:{%A, %e %B, %Y}] - booking date / Buchungsdatumg

[BOOKINGDATE:+1day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string / Datum plus/minus x Tage und Darstellung mit gültigem PHP strftime String