You can now allow customers to download their tickets directly from an email. In order to do so:
- In the order confirmation email configuration, add the following command on the top of the document:
{#addProperty($document "showTicketUris" "true")
{#if(!$document.order.ticketUris.isEmpty())}
{#set($ticketUri = "#joinParts($document.order.ticketUris)")}
{#end} In the location where you want to display the URL to download the tickets, add:
{#if($stxHelper.getProperty($document, "showTicketUris", false, "", "") == "true")#if($document.order.ticketUris.size() == 1)} or download your tickets directly{#end#end}.
with hyperlink your tickets = $ticketUri
The link is then displayed in the confirmation email.