Inclued a Google calendar invite on generated ticket

Home Forums Ticket Products Event Tickets Plus Inclued a Google calendar invite on generated ticket

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1267984
    johnny
    Participant

    Hi how would I go about adding a Google calendar invite to the automatically generated RSVP or Woo Commerce Tickets?

    Also would it be possible to resend the original ticket RSVP or Woo Commerce Event to the attendees as a reminder email prior to an event commencing?

    #1269339
    Andras
    Keymaster

    Hello Johnny,

    Thanks for using our plugins and for getting in touch with your questions.

     

    Hi how would I go about adding a Google calendar invite to the automatically generated RSVP or Woo Commerce Tickets?

    You could create a template override for the email that is being sent out.

    Here is a link to our Themer’s Guide that should help you get started in doing a template override.

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

     

    Also would it be possible to resend the original ticket RSVP or Woo Commerce Event to the attendees as a reminder email prior to an event commencing?

    I believe this would be possible manually if you go to the WooCommerce order page of the tickets, and there in the top right corner in the “Order actions” box you should be able to find “Resend tickets”.

    If you want to automate that, then a plugin like Follow Up Emails might help you with that.

    I hope this helps! Let me know if you have more questions regarding this.

    Cheers,
    Andras

    #1271492
    johnny
    Participant

    Hi Andras, I had a look at guide you supplied. very confusing not sure which ticket file to edit. I just want to add “goggle cal” to both RSVP and Woocomerce tickets that get emailed out. Is there some kind of simpler way to do this.

    Thanks
    Johnny

    #1271637
    Andras
    Keymaster

    Hey Johnny,

    I’ll check if there is a simple solution for this.

    Will get back to you soon.

    Andras

     

    #1271652
    Andras
    Keymaster

    Johnny, you can try this:

    Add the following snippet to your child theme’s functions.php file:

    add_action ( 'tribe_tickets_ticket_email_ticket_bottom', 'add_gcal_to_email' );
    function add_gcal_to_email() {
    echo "Hello, this is the extra text";
    }

    Adjust the text to your needs.

    The ticket will look like this:
    Cloudup hak33hp1cp0

     

    This is the easiest it can go.

    You can of course have a longer text, multiple lines and html markup in there as well.

    Let me know if this solves it for you.

    Cheers,
    Andras

    #1271884
    johnny
    Participant

    Hi Andras I did what you said but I seem to get a syntax error on line 18 please see screen shot.

    Johnny

    #1272042
    johnny
    Participant

    Hi Andras, I did some updates and gave it another go. Seemed to sort of work. Now the text seems to work… But i thought this would be the event gcal link to the event. Is it possible to add the link or have the ical and gcal buttons at the bottom of the email. please see screen images attached.

    Thanks

    Johnny

    #1273309
    Andras
    Keymaster

    Hi Johnny,

    Let me check that for you and I’ll let you know.

    Cheers,
    Andras

    #1275022
    Brook
    Participant

    Howdy Johnny,

    Andras has been pretty swamped the last little bit and asked me to take a look at this.

    I think this code snippet is exactly what you’re looking for:

    https://gist.github.com/elimn/dd7de019f478bd151ca14cafe7d284f1

    That will add a working Gcal link to the email template. Note, the Email template does not include any “button” styling, so this is just a plain blue link by default. If you want to style it up you will need add some CSS that changes the look from a regular link to a button. But regardless of how it looks, it should work as you’ve described. 🙂

    Let us know if that helped. Cheers!

    – Brook

    #1277055
    johnny
    Participant

    Hi Brook, that codes snippet seemed to work a treat. Would you Also have a code snippet to add an iCal beneath the gCal link.

    Thanks
    Johnny

    #1277712
    Andras
    Keymaster

    Hey Johnny,

    Brook was kind enough to help out with that as well.

    Try this snippet for the iCal.

    https://gist.github.com/andrasguseo/4a0ade5be8495c5dac34fc5a17f6dc59

    Let me know how that works out.

    If you want the ical link in a new line, then you might need to add a “<br>” before the

    <a class="tribe-events-ical

    in this second snippet.

    Does this do the trick?

    Andras

    #1277758
    johnny
    Participant

    Hi Andras, this did the trick attached is a screen shot. Thank you again for the code snippet.

    Johnny

    #1277957
    Andras
    Keymaster

    Excellent, I’m super happy it helped.

    Since this topic seems resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.

    Good luck with your project!

    Cheers,
    Andras

    #1277959
    Andras
    Keymaster

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/plugin/the-events-calendar/reviews/
    https://wordpress.org/support/plugin/event-tickets/reviews/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Inclued a Google calendar invite on generated ticket’ is closed to new replies.