Autofill RSVP Email

Home Forums Calendar Products Events Calendar PRO Autofill RSVP Email

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1273815
    Andy
    Participant

    Hi!

    Is it possible to autofill the RSVP email with the logged in users email? I’m having issues where a user might have an email “[email protected]” but when they RSVP they misspell it as “[email protected]” and I can’t see their default profile pic in the registered attendees section.

    Thanks for your help.

    Andy.

    #1274505
    Victor
    Member

    Hi Andy!

    I’d be happy to help!

    First off, I do want to note that we are fairly limited in how much we can support custom development questions like this.

    That said, I’d be happy to at least point you in the right direction as best I can.

    One approach to achieving that is overriding the rsvp.php template file. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the rsvp.php template. It is located at wp-content/plugins/event-tickets/src/views/tickets/rsvp.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called tickets
    • Drop your copied rsvp.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, you could change line 121 to be like this >

    <input type="email" name="attendee[email]" id="tribe-tickets-email" value="<?php $current_user = wp_get_current_user(); echo $current_user->user_email; ?>">

    Will this work for you? Please let me know. 🙂

    Cheers!
    Victor

    #1285042
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Autofill RSVP Email’ is closed to new replies.