Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How to Display a Class After the Attendee Limit is Reached | Event Espresso - Staging Server

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

Viewing 1 reply thread


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

  • Support Staff

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.

Viewing 1 reply thread

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 - Staging Server