Customize ticketing email

Home Forums Ticket Products Event Tickets Plus Customize ticketing email

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1021384
    darrienw93
    Participant

    Hi,

    I am trying to create a custom event email that will contain the event name, date + time, venue + address, google map, organizer email, and etc.

    I see that there is a foreach loop that will print this information for every ticket that is purchased in the email.php, but I only need this data to be displayed once in variables in my email template.

    Could someone help me figure out how to use the variables out of the loop?

    #1021389
    George
    Participant

    Hey @darrienw93,

    We unfortunately cannot help with code customizations, which is essentially what customizing the event emails would boil down to, but I’m happy to help as much as possible.

    With that in mind then, can you clarify or elaborate on exactly what you mean by your comments here:

    I see that there is a foreach loop that will print this information for every ticket that is purchased in the email.php, but I only need this data to be displayed once in variables in my email template.

    The variables are not available outside of the loop, although the $tickets variable is itself an array so you can just refer to the 0-index element in that array if you only ever want to show information from the first ticket in the order. And so the code would essentially just look this for example:

    $tickets[0]['event_id'] instead of the current version inside the loop which is $ticket['event_id']

    If you’re not familiar with PHP arrays and how to use them, I would recommend researching that more online.

    Best of luck with your customizations!

    — George

    #1021398
    darrienw93
    Participant

    Hi George,

    Thank you for the extremely quick response.

    I was able to get it solved!

    #1021777
    George
    Participant

    Nice! 😀 Best of luck with your site @darrienw93.

    — George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Customize ticketing email’ is closed to new replies.