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 attribute and set to "True":
{#addProperty($document "showTicketUris" "true")
{#if(!$document.order.ticketUris.isEmpty())}
{#set($ticketUri = "#joinParts($document.order.ticketUris)")}
{#end}
on the top of the document
Tne:
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.