In an event, although the maximum number of attendees is reached, the (translated) message We are sorry but this event has reached the maximum number of attendees is not displayed. Visitor can still add a ticket to the shopping cart. But, when checking out, a message please make sure to select at least one attendee or delete it from your cart is displayed.
I’m sure it’s me doing something wrong, can you tell me what I am overlooking? Thanks!
Are you still using Event Espresso 3? Are you adding the ticket to the cart via a page that has a cart short code or is it the page with the event list?
Thank you for your answer, this is exactly the work around applied right now.
Ideal would be, however, if EE would display an appropriate message by itself. Searching in EE I found that there is relevant code in multi_registration_page.php (line 162) and registration_page.php (line 238):
if ($num_attendees >= $reg_limit) {
| <?php _e(‘We are sorry but this event has reached the maximum number of attendees!’, ‘event_espresso’); ?>
Shouldn’t the if-statement return a ‘true’ and display the right message?
Instead of pointing them to a page with the ADD to CART short code on it, you give them a link to the EE3 event page. On the event page you can put the ticket selector shortcode.
Once the event is sold out, it automatically removes the cart links and displays a sold out message.
Viewing 7 reply threads
The support post ‘Unexpected things when maximum number of attendees is reached’ 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.