Email templates
JoomCourses sends its emails from templates you can edit. Click Email Templates in the sidebar.
The four types
Each template has a Data Type:
| Data Type | When it is sent | Chosen in |
|---|---|---|
| Booking Confirmation | After checkout, to a customer who logged in or registered. | Default booking email in the options, or Email Template on a course or course date |
| Guest Booking Confirmation | After checkout, to a guest. It contains the link to the booking. | Default guest booking email, or Guest Email Template on a course or course date |
| Booking State Changed | When a booking becomes Paid. | Payment Received Email Template in the options |
| Waiting List | When a seat comes free for someone on the waiting list. | Waiting List Email Template in the options |
The installer adds three templates: Booking Confirmation, Guest Booking Confirmation and Waiting List. There is no Booking State Changed template yet, so no payment email is sent until you create one and choose it in Payment Received Email Template.
For the confirmation, JoomCourses takes the template of the course date, then the one of the course, then the default in the options. When none is set, it uses the first published template of the right type. A booking with several course dates sends one confirmation per course date.
Edit a template
| Field | What it is |
|---|---|
| Title | The name in the lists. |
| Data Type | One of the four types above. |
| BCC | An address that gets a separate copy of every email sent with this template, for example your office. |
| Subject | The email subject. Placeholders are not replaced in the subject, except {COURSE_TITLE} in the waiting list email. |
| Body | The email text, in the editor. |
| Status, Language | A template must be published to be used. |
The Variables box next to the editor inserts a placeholder where the cursor is. It does not list all of them: the tables below do.
On a fresh install the three templates can show a lock icon in the list. Click the lock to check them in, then open them.
Placeholders
Customer
Used in the confirmation emails.
| Placeholder | Value |
|---|---|
{APPLICATION_SALUTATION}, {APPLICATION_FIRSTNAME}, {APPLICATION_LASTNAME} |
The customer's name. |
{APPLICATION_EMAIL}, {APPLICATION_PHONE} |
Email and phone. |
{APPLICATION_COMPANY}, {APPLICATION_ADDRESS}, {APPLICATION_CITY}, {APPLICATION_COUNTRY} |
Company and address. |
{APPLICATION_VAT_NUMBER}, {APPLICATION_IDENTIFICATION_NUMBER}, {APPLICATION_WEBSITE} |
The other checkout fields. |
{APPLICATION_COMMENTS} |
The Comments field. |
{APPLICATION_PAYMENT_METHOD_NAME} |
The payment method chosen. |
{QUANTITY}, {ATTENDEES} |
The number of seats. |
{GUEST_EMAIL}, {GUEST_APPLICATION_LINK} |
Guest confirmation only: the email and the link to the booking. Keep the link in the guest template, it is the guest's only way back to the booking. |
Course and date
Used in the confirmation emails.
| Placeholder | Value |
|---|---|
{COURSE_TITLE}, {COURSE_INTROTEXT}, {COURSE_FULLTEXT} |
The course. |
{COURSE_URL} |
The Url field of the course. |
{GROUP}, {EXPERIENCE_LEVEL} |
Group and experience level. |
{COURSE_START_DATE}, {COURSE_FINISH_DATE} |
The dates of the course date. |
{COURSE_LOCATION}, {COURSE_CAPACITY} |
Location and capacity. |
{TUTOR_FIRST_NAME}, {TUTOR_LAST_NAME} |
The tutor. |
{SESSIONS} |
A table of the sessions with date and times. |
{SESSIONS_DESCRIPTION} |
The Sessions Note of the date. |
{COURSE_PRICE_PER_ATTENDEE} |
Price of one seat. |
{PRICE_WITHOUT_VAT}, {VAT}, {PRICE_WITH_VAT} |
The totals of this course date. |
Payment
Used in the Booking State Changed template chosen as Payment Received Email Template. The customer placeholders work there too, and the course placeholders show the first course of the booking.
| Placeholder | Value |
|---|---|
{ORDER_ID} |
The booking number. |
{ORDER_TOTAL} |
The total paid. |
{TRANSACTION_ID} |
The reference of the payment provider. |
{PAYMENT_DATE} |
The date of the payment. |
{COURSES} |
A table of the booked courses. |
Waiting list
See Waiting list. The template must contain {WAITING_LIST_LEAVE_URL} so people can leave the list.
Custom field placeholders
Every Joomla custom field of JoomCourses has a placeholder made from its name in capitals:
{COURSE_CF_ROOM}for a course field namedroom.{CONTACT_CF_DIET}for a contact field nameddiet.
Who sends the email
The emails go out with the mail settings of System > Global Configuration > Server: the From email and From Name of the site. If no email arrives, check those settings first. See Troubleshooting.