Difference between revisions of "Template Variables"
Markkinchin (talk | contribs) |
|||
Line 19: | Line 19: | ||
'''[PROPERTYPHONE]''' - property phone | '''[PROPERTYPHONE]''' - property phone | ||
+ | |||
+ | '''[PROPERTYID]''' - property id number | ||
'''[ROOMNAME]''' - room names of all booked rooms | '''[ROOMNAME]''' - room names of all booked rooms | ||
Line 27: | Line 29: | ||
'''[FIRSTNIGHT]''' - first night booked | '''[FIRSTNIGHT]''' - first night booked | ||
+ | |||
+ | '''[FIRSTNIGHTYYYY-MM-DD]''' - first night booked in YYYY-MM-DD format | ||
'''[FIRSTNIGHT:+1day]''' - offset from first night, can be any number of days positive or negative | '''[FIRSTNIGHT:+1day]''' - offset from first night, can be any number of days positive or negative | ||
'''[LASTNIGHT]''' - last night booked | '''[LASTNIGHT]''' - last night booked | ||
+ | |||
+ | '''[LASTNIGHTYYYY-MM-DD]''' - last night booked in YYYY-MM-DD format | ||
'''[LASTNIGHT:+1day]''' - offset from last night, can be any number of days positive or negative | '''[LASTNIGHT:+1day]''' - offset from last night, can be any number of days positive or negative | ||
'''[LEAVINGDAY]''' - check-out day | '''[LEAVINGDAY]''' - check-out day | ||
+ | |||
+ | '''[LEAVINGDAYYYYY-MM-DD]''' - check-out day in YYYY-MM-DD format | ||
'''[LEAVINGDAY:+1day]''' - offset from check-out, can be any number of days positive or negative | '''[LEAVINGDAY:+1day]''' - offset from check-out, can be any number of days positive or negative | ||
Line 97: | Line 105: | ||
'''[REFERRER]''' - Referrer | '''[REFERRER]''' - Referrer | ||
+ | |||
+ | '''[REFERRER2]''' - Referrer2 | ||
'''[ORIGINALREFERRER]''' - Original referrer | '''[ORIGINALREFERRER]''' - Original referrer | ||
Line 124: | Line 134: | ||
'''[CANCELURL]''' - URL to view and cancel bookings | '''[CANCELURL]''' - URL to view and cancel bookings | ||
− | '''[CURRENTDATE]''' - current date | + | '''[CURRENTDATE]''' - current date |
+ | |||
+ | '''[CURRENTDATEYYYY-MM-DD]''' - current date in YYYY-MM-DD format | ||
'''[CURRENTDATE:+1day]''' - offset from current date, can be any number of days positive or negative | '''[CURRENTDATE:+1day]''' - offset from current date, can be any number of days positive or negative | ||
Line 131: | Line 143: | ||
'''[BOOKINGDATE]''' - booking date | '''[BOOKINGDATE]''' - booking date | ||
+ | |||
+ | '''[BOOKINGDATEYYYY-MM-DD]''' - booking date in YYYY-MM-DD format | ||
'''[BOOKINGDATE:+1day]''' - offset from booking date, can be any number of days positive or negative | '''[BOOKINGDATE:+1day]''' - offset from booking date, can be any number of days positive or negative | ||
− | |||
− | |||
'''[ROOMID]''' - room id number | '''[ROOMID]''' - room id number |
Revision as of 10:26, 7 May 2014
Below is a List of Template Variables.
These variables (short codes) will be replaced by the relevant information from each booking. They can be used in every text settings that allows their use . Copy them exactly as shown, including the square brackets and upper case.
The date variables can have an optional offset value of a number of days added after a colon, for example [FIRSTNIGHT:-3 days]
The price variables can have an optional offset value applied which can be a percentage or fixed amount with or without minus sign added after a colon, for example [PRICE:-10] or [INVOICEBALANCE:25%]
Template Variables
[PROPERTYNAME] - property name
[PROPERTYADDRESS] - property address
[PROPERTYCITY] - property city
[PROPERTYEMAIL] - property email
[PROPERTYPHONE] - property phone
[PROPERTYID] - property id number
[ROOMNAME] - room names of all booked rooms
[ROOMNAMES] - room names including quantity of each booked room
[REFERENCENUMBER] - booking reference
[FIRSTNIGHT] - first night booked
[FIRSTNIGHTYYYY-MM-DD] - first night booked in YYYY-MM-DD format
[FIRSTNIGHT:+1day] - offset from first night, can be any number of days positive or negative
[LASTNIGHT] - last night booked
[LASTNIGHTYYYY-MM-DD] - last night booked in YYYY-MM-DD format
[LASTNIGHT:+1day] - offset from last night, can be any number of days positive or negative
[LEAVINGDAY] - check-out day
[LEAVINGDAYYYYY-MM-DD] - check-out day in YYYY-MM-DD format
[LEAVINGDAY:+1day] - offset from check-out, can be any number of days positive or negative
[NUMROOM] - the quantity of rooms booked (first room type only)
[NUMROOMS] - the quantity of rooms booked (sum of all rooms and room types)
[NUMNIGHT] - number of nights
[NUMADULT] - number of adults
[NUMCHILD] - number of children
[NUMPEOPLE] - number of guests
[RATEDESC] - name of the rate
[PRICE] - Price
[PRICE:10%] - Percentage value of Price
[PRICE:-10] - Price with offset amount
[AVPRICE] - Average Nightly Price
[AVPRICE:20%] - Percentage value of Average Nightly Price
[AVPRICE:15] - Average Nightly Price with offset amount
[GUESTNAME] - last name
[GUESTFIRSTNAME] - first name
[GUESTFULLNAME] - titel, first name, last name
[GUESTEMAIL] - guest's Email address
[GUESTPHONE] - guests phone number
[GUESTADDRESS] - guests address
[GUESTPOSTCODE] - guests postcode
[GUESTCOUNTRY] - guests country
[GUESTMOBILE] - guests mobilenumber
[GUESTFAX] - guests faxnumber
[GUESTARRIVALTIME] - arrivaltime
[GUESTCOMMENTS] - comments in the booking
[GUESTCUSTOMQ1] - answer to custom question 1
[GUESTCUSTOMQ2] - answer to custom question 2
[GUESTCUSTOMQ3] - answer to custom question 3
[GUESTCUSTOMQ4] - answer to custom question 4
[REFERRER] - Referrer
[REFERRER2] - Referrer2
[ORIGINALREFERRER] - Original referrer
[APIREF] - the booking number at the originating channel
[NOTES] - notes
[MESSAGE] - the content of the booking message field
[REFERENCE] - content of the booking reference field
[INVOICEBALANCE] - invoice balance
[INVOICEBALANCE:50%] - percentage of invoice balance
[INVOICEBALANCE:-100] - invoice balance with offset amount
[INVOICETABLE] - invoice table
[INVOICETABLE2] - invoice table with status field
[STATUS] - status of booking
[FLAG] - Flag / Buchungshighlight
[CANCELURL] - URL to view and cancel bookings
[CURRENTDATE] - current date
[CURRENTDATEYYYY-MM-DD] - current date in YYYY-MM-DD format
[CURRENTDATE:+1day] - offset from current date, can be any number of days positive or negative
[CURRENTTIME] - current time
[BOOKINGDATE] - booking date
[BOOKINGDATEYYYY-MM-DD] - booking date in YYYY-MM-DD format
[BOOKINGDATE:+1day] - offset from booking date, can be any number of days positive or negative
[ROOMID] - room id number
[INTERNALROOMNAME] - internal room name as used in the control panel, this is not the translated room name shown on the booking page
[VIEWBOOKING] - create a URL to log into the control panel and view this booking (for hosts, not intended to be sent to guests)