Skip to main content

JetAppointment Macros for Send Email

When sending appointment emails with JetAppointment, you can use various macros to dynamically display information about each booking. Below are the available macros, their uses, and some examples to guide you.

Updated over 12 months ago

Basic Macros

These macros display essential details of the appointment service and provider.

  • %service_title%: Displays the name of the appointment service.

  • %provider_title%: Displays the name of the appointment provider.

  • %service_link%: Displays the link to the appointment service.

  • %provider_link%: Displays the link to the appointment provider.

  • %appointment_price%: Displays the price of the booked appointment.


Date and Time Macros

You can customize the format of the date and time in your emails. Here are the macros with examples:

  • %appointment_start%: Shows the date and time the appointment starts. Example format:
    %appointment_start|format_date(F j, Y g:i)% displays January 1, 2024 3:00 PM.

  • %appointment_end%: Shows the end date and time of the appointment. Example format:
    %appointment_end|format_date(g:i)% displays 5:00 PM.

  • %user_local_time%: Displays the appointment time in the user’s timezone if timezone management is enabled.

  • %user_local_date%: Shows the appointment date in the user’s timezone.

  • %user_timezone%: Shows the user’s timezone information.


Multi-Booking vs. Standard Booking

If using multi-booking, you’ll need to apply a different set of macros to display each booking’s details.

  1. Multi-Booking Macros:

    • Use %appointments_list% and %appointments_list_end% to define the start and end of each booking section.

    • Include relevant details for each booking between these tags. Example:

      %appointments_list%
      Service: %service_title%
      Start: %appointment_start|format_date(F j, Y g:i)%
      End: %appointment_end|format_date(F j, Y g:i)%
      %appointments_list_end%
  2. Standard Booking Macros:

    • For single bookings, use %appointment_start|format_date(F j, Y g:i)% and %appointment_end|format_date(F j, Y g:i)% without the multi-booking delimiters.


Formatting Examples

You can further customize the date and time format as needed. Here are some examples:

  • Start Date: %appointment_start|format_date(F j, Y)%

  • Start Time: %appointment_start|format_date(g:i)%

  • End Date: %appointment_end|format_date(F j, Y)%

  • End Time: %appointment_end|format_date(g:i)%


Cancellation Link

To include a cancellation link in your email, use the following macro:

  • %appointment_meta|_cancel_url%: Generates a link for appointment cancellation.


Example Setup

If you are handling multi-booking, set up the email content as follows:

%appointments_list%
Service: %service_title%
Provider: %provider_title%
Start: %appointment_start|format_date(F j, Y g:i)%
End: %appointment_end|format_date(F j, Y g:i)%
Cancellation Link: %appointment_meta|_cancel_url%
Price: %appointment_price%
%appointments_list_end%

For standard bookings:

Service: %service_title%
Provider: %provider_title%
Start Date: %appointment_start|format_date(F j, Y)%
Start Time: %appointment_start|format_date(g:i)%
End Date: %appointment_end|format_date(F j, Y)%
End Time: %appointment_end|format_date(g:i)%
Price: %appointment_price%

By following this guide, you can set up JetAppointment emails with ease and provide clients with clear, customized information about their appointments. For more details on formatting date and time, refer to the time format documentation in JetAppointment.

Did this answer your question?