Knowledge base/Website configuration

Edit email notifications

Technical Support
posted this on November 27, 2009 11:46

it's easy to add more information about the reservation or additional links in all email notification sent through TouristWay.

First of all locate the email template you want to edit:

  • enter the administration area
  • go to "TEMPLATES" menu
  • from the list on the right side select "email" item:
  • customemail1.png
  • then scroll to the bottom of the page and press SEARCH:
  • customemail2.png
  • You will get a list of all available email templates, pick one and click EDIT to open it:
  • customemail3.png

 

Now you will see the template whose behavior is exactly the same of any other template in TouristWay, you can insert your own text or use TouristWay variables to place dynamic information taken from the data model.

For example: "resvconfirmation.html" is used by the booking object to trigger an email notification anytime the reservation change status. It contains the following piece of code that loop through all services in the reservation and list their name.

Reservation n.%-booking.header.resnumber-%, here is a brief summary of the included services: <%FOREACH service IN booking.services ># %-service.details.name-% </%FOREACH>

Say that you want to add more than just the name, the "location" for example. Since this email is used by the booking object, you can see how a booking data model looks like and get the field names from there. To do so just create any reservation and switch on the WorkBench to investigate the data model of the booking object. You will find the booking.services node (see FOREACH statement above) and you'll see that each service contains a product node with all the details about the reserved hotel (or car or whatever), including the location we were after.

So here's how is how to add this new information:

Reservation n.%-booking.header.resnumber-%, here is a brief summary of the included services: <%FOREACH service IN booking.services > # %-service.details.name-% %-service.product.locationdes-%
</%FOREACH>

Of course you can as well enter any text in the template, links back to your site's login, further instruction, thank you notes or whatever inspires you.

 
Topic is closed for comments