Hi,
I would like to customise the ticket email that is sent out, however I would like to have one version for RSVP events and a slightly different version for WooCommerce events.
I believe both tickets are generated using the one template, /event-tickets/src/views/tickets/email.php which I can override in my theme.
Assuming I’m not missing something and I can’t just create separate overrides for RSVP or WooCommerce tickets, perhaps I can use some php to differentiate the ticket type, and use an if statement to inject the appropriate HTML at the relevant part of the email template.
Given I have access to the $tickets array, containing event_id, ticket_name, holder_name, order_id, ticket_id and security_code, is there a function that can return the ticket type, or maybe a true / false if it is a WooCoommerce ticket?