Sending Calendar links in confirmation emails

Home Forums Calendar Products Events Calendar PRO Sending Calendar links in confirmation emails

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #994033
    tuberb
    Participant

    I’m trying to customize the event registration confirmation emails to include links back to the site for Google and iCal calendar entries. There seem to be functions named tribe_get_gcal_link and tribe_get_ical_link; one of them says only use inside the loop (which is not the context) and the other seems to not be event specific.

    Is there a built in function that will return the Google and iCal calendar links given an event ID?

    Thanks,

    Barry

    • This topic was modified 8 years, 9 months ago by tuberb.
    #994257
    Brian
    Keymaster

    Hi Barry,

    Thanks for using our plugins. I can try to help out here.

    I looked up the function and found this two functions.


    echo Tribe__Events__Main::instance()->esc_gcal_url( tribe_get_gcal_link() );

    echo esc_url( tribe_get_single_ical_link() );

    You could add those to the ticket template:

    the-events-calendar\src\views\tickets\email.php

    To display the links after you follow the themer’s guide to move that template to your theme:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    You can pass the event id to both I believe.

    Those functions only provide a link so you will need to add them inside your html tags.

    Cheers

    #998156
    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 ‘Sending Calendar links in confirmation emails’ is closed to new replies.