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.
-
AuthorPosts
-
March 28, 2018 at 10:28 am #1490892
Liia Ram
ParticipantWhen 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.
March 29, 2018 at 12:00 pm #1492113Victor
MemberHi 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
<?phpI hope that helps. Let me know if any follow up questions 🙂
Best,
VictorMarch 29, 2018 at 3:37 pm #1492279Liia Ram
ParticipantVictor,
This snippet only works when a user RSVP’s for an event. I’m using Event Tickets Plus and using Tribe Commerce for payment.
March 30, 2018 at 6:21 am #1492640Victor
MemberHi 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,
VictorMarch 30, 2018 at 12:26 pm #1493107Liia Ram
ParticipantVictor,
I’ve done several test. Unfortunately the snippet doesn’t work when a ticket is purchased it only works if you RSVP.
April 2, 2018 at 6:18 am #1494192Victor
MemberHi 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!
VictorApril 4, 2018 at 9:29 am #1496432Liia Ram
ParticipantVictor,
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 );April 5, 2018 at 4:56 am #1497241Victor
MemberHi 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,
VictorApril 27, 2018 at 9:35 am #1517912Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Event Tickets Plus | Email Notifications’ is closed to new replies.
