Template Variables: Unterschied zwischen den Versionen

Aus Beds24 Wiki
Zur Navigation springen Zur Suche springen
Zeile 62: Zeile 62:
 
[FIRSTNIGHTSHORT] - first night booked in 1 Apr 2016 format / erste gebuchte Nacht kurz
 
[FIRSTNIGHTSHORT] - first night booked in 1 Apr 2016 format / erste gebuchte Nacht kurz
  
[FIRSTNIGHT:+1day] - offset from first night / erste Nacht plus/minus x Tage
+
[FIRSTNIGHT:+1day] - offset from first night / erste Nacht plus/minus x days
  
 
[LASTNIGHT] - last night booked / letzte gebuchte Nacht
 
[LASTNIGHT] - last night booked / letzte gebuchte Nacht
  
[LASTNIGHT:+1day] - offset from last night / letzte Nacht plus/minus x Tage
+
[LASTNIGHT:+1day] - offset from last night / letzte Nacht plus/minus x days
  
 
[LEAVINGDAY] - check-out day / Abreisetag
 
[LEAVINGDAY] - check-out day / Abreisetag
  
[LEAVINGDAY:+1day] - offset from check-out / Abreisetag plus/minus x Tage
+
[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)
 
[NUMROOM] - the quantity of rooms booked (first room type only) /Anzahl gebuchter Einheiten (nur erster Einheitstyp)
Zeile 182: Zeile 182:
 
[BOOKINGTIMEDATE] - booking date and time / Tag und Uhrzeit der Buchung
 
[BOOKINGTIMEDATE] - booking date and time / Tag und Uhrzeit der Buchung
  
[BOOKINGDATE:+1day] - offset from booking date / Tag der Buchung plus/minus x Tage
+
[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
 
[BOOKINGIP] - ip address of booker's computer / IP Adresse des Computers von dem gebucht wurde
Zeile 265: Zeile 265:
  
 
[/] - will divide the number left of the template variable by the number right  / dividiert 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 [/]
 +
 +
== strf Time Variablen ==
 +
Sie können  PHP strftime nutzen um Datenformete zu formatieren.  Information über PHP strftime Strings finden sie unter [http://php.net/manual/de/function.strftime.php]
 +
 +
[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

Version vom 18. Dezember 2015, 13:35 Uhr

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 address / Adresse Unterkunft

[PROPERTYCITY] - property city / Stadt Unterkunft

[PROPERTYEMAIL] - property email / Email Unterkunft

[PROPERTYPHONE] - property phone / Telefon Unterkunft

[PROPERTYFAX] - property fax / Fax Unterkunft

[PROPERTYID] - property id number / ID Unterkunft

[PROPERTYPOSTCODE] - property post code / Unterkunft Postleitzahl

[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

[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 alle Einheiten

[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 erste Einheit - fügen sie den Text getrennt durch ein | Symbol dort ein, wo sie den Namen für die Einheit vergeben.

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] - name of the rate / Preisbezeichnung

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

[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

[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

[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

[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.

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.

[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

[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

[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 [/]

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