Event Tickets Plus | Email Notifications

Home Forums Ticket Products Event Tickets Plus Event Tickets Plus | Email Notifications

  • This topic has 0 replies, 2 voices, and was last updated 8 years ago by Liia Ram.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1490892
    Liia Ram
    Participant

    When a user purchases a ticket email notifications aren’t going out to the event organizer or to the wp admin. An email does go out to the user purchasing the tickets but i also need it to send out an email to the event organizer and the wp admin.

    #1492113
    Victor
    Member

    Hi Liia!

    Thanks for reaching out to us! I’d be happy to help you with this topic.

    By default, the ticket email is only sent to the user. However, we have a snippet to also send a copy of the email to the event organizers.

    You can place the following snippet into your functions.php file to accomplish that:

    https://gist.github.com/vicskf/c807167bd0a89a13af7f9ad8d351d184

    Do make sure you don’t paste the opening php tag
    <?php

    I hope that helps. Let me know if any follow up questions 🙂

    Best,
    Victor

    #1492279
    Liia Ram
    Participant

    Victor,

    This snippet only works when a user RSVP’s for an event. I’m using Event Tickets Plus and using Tribe Commerce for payment.

    #1492640
    Victor
    Member

    Hi Liia!

    The snippet should also work for tickets email too. The gist description was a bit confusing so I’ve just updated it to reflect this fact.

    Please try it out and let me know if it works for your site.

    Thanks,
    Victor

    #1493107
    Liia Ram
    Participant

    Victor,

    I’ve done several test. Unfortunately the snippet doesn’t work when a ticket is purchased it only works if you RSVP.

    #1494192
    Victor
    Member

    Hi Liia!

    Thanks for confirming that.

    You are absolutely right. I’ve just reviewed the code and Tribe Commerce uses a functionality for PayPal tickets, so the code snippet I shared will only work for RSVP and Tickets sold using our Event Tickets Plus plugin.

    We don’t yet have a code to accomplish the same with PayPal tickets.

    First, please let me note that we are fairly limited in how much support we can give for custom development questions like this.

    With that being said, we’d love to help point you in the right direction.

    For your customization, you may want to take a look at the tribe_tpp_email_headers filter located at wp-content/plugins/event-tickets/src/Tribe/Commerce/Main.php

    If you’d prefer not to tackle this customization on your own, we may be able to assist you further. We do need to prioritize support requests from other customers at this time but I’ll certainly flag this with the team and – although we can’t make any promises – if we have time and space to come back and help, we’ll be happy to do so.  Please let us know if you’d like to go this route so that you can be added to this queue.

    If you urgently need help with this, however, you may instead wish to consider working with a suitably skilled developer or designer who can offer the additional level of support you require.

    Thanks!
    Victor

    #1496432
    Liia Ram
    Participant

    Victor,

    Thanks for the filter. I’m using this now and it’s working, not what I was looking for but it will do for now. Hopefully this functionality can get implemented in future releases where an email get’s sent out to an administrator or the event organizer.

    
    <?php
    /**
     * BCC custom email on all Event Tickets' purchased
     */
    function add_bcc_email_headers( $headers ) {
      
      // Define who gets bcc'd
      $bcc = "Custom Name <[email protected]>";
      $headers[] = sprintf( 'Bcc: %s', $bcc );
      
      return $headers;
    }
    add_filter( 'tribe_tpp_email_headers', 'add_bcc_email_headers', 10, 1 );
    #1497241
    Victor
    Member

    Hi Liia!

    That’s awesome! Thanks for sharing the code so other users can make use of it.

    I can surely see the use of having that email notification as a built-in functionality, so I’d suggest you post that as a new idea in our User Voice > https://tribe.uservoice.com/forums/195723-feature-ideas so others wanting the same can vote for it.

    Is there anything else I can help you with? Let me know 🙂

    Best,
    Victor

    #1517912
    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 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Event Tickets Plus | Email Notifications’ is closed to new replies.