Form Layouts with the Smarty PHP Template Engine
Templates for PDF printouts and email forms are stored in the form editor under System > Documents. Placeholders from the database view are rendered with Smarty syntax.
Detailed Smarty documentation is available at https://www.smarty.net/docs/en/.
Variables and Placeholders
All variables are listed in the database view with a content preview. You can use these variables in templates to output dynamic content from the booking, reservation, or customer record.
Travelmanager Smarty Functions
Travelmanager provides additional Smarty functions for use in forms:
DblToC: Outputs a numeric value as a currency value, for example{2.03|DblToC}returns2,03.CToDbl: Converts a formatted value into a number, for example{"2,03"|CToDbl}returns2.03.ZeitAnzeige: Converts a number into a readable time, for example{930|ZeitAnzeige}returns09:30.cutTextFahrplanausgabe: Shortens text from a defined length, for example{"ABCDEF"|cutTextFahrplanausgabe:2}returnsAB....generateQRCode: Creates an encrypted QR code using the booking number as the code.
{$reservierung_id|generateQRCode:$vorgang_nr}
Printing Tickets and Receipts
If a ticket sale should print a ticket and a receipt on two different printers, proceed as follows:
- Create the templates for the ticket and the receipt.
- Configure the templates under
System parameters > Printers. - Configure the printers for each point of sale under
System parameters > Point of sale.