Show event address only on Emailed ticket

Home Forums Ticket Products Event Tickets Plus Show event address only on Emailed ticket

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1328017
    Alexis Melvin
    Participant

    I need to show the event address only after a ticket purchase is complete. I have been trying to add the address to the ticket that will be emailed, but so far have not figured out how to do this.

    Useing Event Tickets Plus and Woocommerce.

    #1328020
    Alexis Melvin
    Participant

    I accomplished what I needed by making an image of the address information and loading it as the Ticket Header Image. But, I suspect there is a better way.

    #1328709
    Cliff
    Member

    Hi, Alexis. Creative solution!

    Please reference our Themer’s Guide for /wp-content/plugins/event-tickets/src/views/tickets/email.php

    You might not even need that though; you might just be able to use one of the hooks in that file, such as tribe_tickets_ticket_email_ticket_bottom

    Here’s a code snippet that you could use to get started with your own customization.

    You could use tribe_get_coordinates() or a similar function from that same file to get the event venue’s location information.

    If you want to include a map image, you’ll likely want to use https://developers.google.com/maps/documentation/static-maps/

    Please let me know how this goes for you.

    #1328932
    Alexis Melvin
    Participant

    Thanks for the suggestions but i don’t think these will give me what I need.
    If I understand these solutions suggestions correctly, they would change the format for all of my ticket emails, not just the ones that need to send the secret address. I need something that will allow me to select which events need special information added to the Ticket Email.

    So far my best solution is to use the header image upload. I will go to the Suggest a Feature forum and request that in addition to being able to upload a Header Image for each ticket email we get the ability to upload a text block to be displayed just below the Header image.

    #1330431
    Cliff
    Member

    Your email.php file could have some logic “if event ID = 280, then output X” — or “if event has Additional Field = “private venue”, then output X”

    You could even use an Additional Field entering the content per event, like a text field, and then the custom email.php file could output whatever’s in that Additional Field.

    Please let me know if you have any follow-up questions on this topic.

    #1330446
    Alexis Melvin
    Participant

    Thanks Cliff.

    #1330519
    Cliff
    Member

    You’re welcome. Let me know if you need anything else if/when you attempt to implement this.

    Please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.

    Thank you!

    #1340354
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Show event address only on Emailed ticket’ is closed to new replies.