QR Codes Section
Tourplan NX can generate QR Codes from Tourplan data or from text hard coded into the Message Template itself. QR Start and End substitution tags allow the code to display on generated messages. These QR codes can be used to direct customers to external websites or to display important information from within the booking.
Example 1: To create a QR code pointing to the required website/URL and hard coded in the message template in this example we have used our Tourplan Website https://www.tourplan.com
<<QR:START>> https://www.tourplan.com <<QR:END>>
Example 2: To create a QR code pointing to the Agent Web Address.
<<QR:START>><AWP:QR><<QR:END>>
The QR Contact Type will need exist in Code Setup and the Agent will need to have a URL entered into their QR Contact Web Address field to know which URL to use.
Example 3: To create a QR code using text from the (Cash Transaction Details) user description 3 field.
<<QR:START>><TRNADDESC3><<QR:END>>
Transaction Description Field 3 in this example would need to have data within the field to generate a code.
Example 4: To create a QR code pointing to the User Input Text ( [UIT:] ), in this case a payment URL.
<<QR:START>>[UIT:payment URL]<<QR:END>>
| Section Tags | Substitution Code/UIT Example | Data Source |
|---|---|---|
| <<QR:START>> | ||
| http://www.tourplan.com | Tourplan Website URL | |
| <AWP:QR> | Agent Web Address | |
| <TRNADDESC3> | Transaction Header Description 3 field | |
| [UIT:payment URL] | Online Payment Gateway | |
| <<QR:END>> |
Included in Service Section
| Section Tags |
|---|
| <<SERVICES:START>> |
| <<DEFAULT>> |
| <<QR:START>><SWP:RE><<QR:END>>SCAN ME |
| <<SERVICES END>> |
Output on message generation:
This example generates the Supplier Service Voucher No. and Supplier Confirmation Text:
| Section Tags |
|---|
| <<SERVICES:START>> |
| <<DEFAULT>> |
| <<QR:START>>VOUCHER NO. <VN> CONFIRMATION: <SUPCONF><<QR:END>>SCAN ME |
| <<SERVICES END>> |
Output on message generation - text:
Formatting a QR Code
There are additional options to format how the QR Code looks:
<<QR:START:pixels:dark:light:quiet>>text<<QR:END>>
| Code | Definition |
|---|---|
| pixels | The size of the pixels of each individual block of the QR code, default to 10 pixels |
| dark | The colour of the dark QR blocks, defaults to #000000 (black) |
| light | The colour of the light blocks, defaults to #ffffff (white) |
| quiet | This enables a 'quiet zone' (border) around the QR code - options are 'Yes or No' |
An example of how a QR code for our website address Tourplan.com is coded into a message template as follows:
<<QR:START:15:#002F6C:#f1f1f1:yes>> http://www.tourplan.com <<QR:END>>
This example has a pixel size of 15 pixels, uses a blue and off white colour pallet and is set to have a surrounding boarder.
When the message is generated the QR code will display using the defined; pixel size; hex colour of the QR blocks; and in this example, is formatted to use a surrounding boarder.
