Adding venue to completed order email

Home Forums Calendar Products Events Calendar PRO Adding venue to completed order email

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #971787
    anywherefest
    Participant

    Hi

    I have customised the completed order email by copying it to my theme etc. one thing has me stumped:

    I really want to add the venue location + detail into the table but just can’t figure out the right php. I can pull general heading text with this:

    <?php echo tribe_get_venue(); ?>

    But what I really want is the venue name and (…if I can) the address- can you guide me?

    Thanks so much for a great product. I’m discovering just how easy it is to use!

    #971804
    George
    Participant

    Hi Alex,

    Getting the Venue ID itself should help you out quite a bit here, because it would then all you to call an Events Calendar function called “tribe_get_meta_group()” which will display the Venue name and address in completion.

    An example of doing these things would be the code below:

    $venue_id = get_post_meta( get_the_ID(), ‘_EventVenueID’, true );
    echo tribe_get_meta_group( ‘tribe_event_venue’ );

    You’re not using $venue_id directly, if at all, in the example above, unless you need to specify further Venue information. But try this out, play around with it a bit, and let us know if it helps. And keep a good backup of your file before you start these further customizations so you always have something to revert to 🙂

    Cheers!
    George

    #984391
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Adding venue to completed order email’ is closed to new replies.