Support

Home Forums Event Espresso Premium How to Display a Class After the Attendee Limit is Reached

How to Display a Class After the Attendee Limit is Reached

Posted: March 4, 2013 at 7:39 pm


Julie Mackenzie

March 4, 2013 at 7:39 pm

We have an event:
http://shepherdsharvestfestival.org/festival-info/class-details-and-registration/?ee=127

We would like to display the event even though the class is full.

How do we show the event even though registration is closed?


Dean

March 5, 2013 at 12:41 am

Hi Julie,

The current default is to not display the event but the closed notification.

The only away around that is to modify the template files.

In the registration_page.php file on line 262 you will see

if ($num_attendees >= $reg_limit) {

directly below that add

require( $template_name );

This will show the details and form as well as the closed message.

Now it is likely that you don’t want the form to show up. You could manually edit the event and turn the form off, or you can add the following code to hide it automagically.

registration_page_display.php

around line 219 above where it says

<div id="event-reg-form-groups">

add

<?php if ($num_attendees >= $reg_limit) { echo ""; } else {  ?>

and rtight near the bottom, around line 295 there is a

<?php } ?> 

above the closing </form> tag. Add an extra } so it will read

<?php } } ?>

Make sure you copy these files to your uploads/espresso/templates folder before modifying. And note that if the template files change in the future you may need to tweak the modified files to get them to work.

The support post ‘How to Display a Class After the Attendee Limit 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.

Event Espresso