With out busy season starting this fall we need to add waiting lists to a large number of events. However adding a waiting list to every single event is too time consuming so I was wondering if there is a way to have EE send an email notification to the admin email when an event has 2 open spots remaining or even when an event becomes full.
If that is not possible I would like to add the something like [num_attendees_slash_reg_limit] short code to the admin email. So that I can see the number of open spots that way.
There is a hook that fires when the attendee is added to the database, “action_hook_espresso_save_attendee_data”. You could use that to check how many spots are left, and fire off an email to the admin if appropriate. How we, you and the support team, get it done is dependent on your comfort level with php. If you are able to dig into it a bit, then we can help you out by pointing you in the right direction in the forums. If we need to code it up, then it would fall under a small customization that we could do on a couple support tokens. I’m not seeing an email shortcode that would give you the number of spots left available.
function fire_email_maybe($attendee_data) {
if (get_number_of_attendees_reg_limit($attendee_data['event_id'], 'number_available_spaces')<3) {
// Fire off the email code here
}
}
Btw, there is a bug in the current version that affects using that hook when allowing additional attendees. In includes/process-registrations/add_attendees_to_db.php the line (572):
It’s been fixed in the next version to be released.
Viewing 4 reply threads
The support post ‘Email to Admin when event is almost full or full’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.