Is there a method of being notified when a visitor books a ticket with a venue?
Ryan Valizan
Hi Ryan,
This is possible. There are hooks for CC’ing address into booking confirmation emails (and also a free extension which adds a user interface for doing this). In your case you’ll need to code the logic yourself to pull out an email associated with the venue to include them in the booking confirmation email. There are details about these hooks here: http://docs.wp-event-organiser.com/bookings/notification-emails/
Please also see this tutorial which details how to implement what you want to achieve: https://wp-event-organiser.com/blog/tutorial/emailing-venues/
It’s also possible to hook into the ‘booking confirmed’ action and send an entirely separate email, rather than CC a venue’s contact email address into the existing email.
Stephen Harris
Hi
I tried implementing what you suggest in your link https://wp-event-organiser.com/blog/tutorial/emailing-venues/ but I am not getting the email in the email account assigned to the venue_email property. Any clues on how to debug this?
Please forgive me I am not a PHP developer but I am a software developer. So any tips in the right direction should be a great assistance.
I did notice however that in the WP Mail Log logs that no email was sent to the venue_email email address. Also, I put the code you suggested in the functions.php file. Finally, the venue_email property was added to the event itself. I assume that is where it needed to be added.
Thanks Colin
-
This reply was modified 6 years, 6 months ago by Colin Gajraj.
Colin Gajraj
Hi Colin,
My apologies for the delay in getting back to you on this.
The email should be stored in the venue custom field metabox. Although, if its preferable the code can be altered to use an event custom field.
Stephen Harris