Posted: August 1, 2014 at 12:24 pm
|
Although I want to be able to set a number of attendees and have a waitlist, I do not want the site to show how many spaces are still available. I would prefer to have something along the lines of “Class Seat Available/Class Full” show up. Note that I am new to WordPress and am working with a more experienced programmers so I need basic steps including file locations. Thanks |
Please see this tutorial: https://eventespresso.com/wiki/how-to-customize-your-available-spaces-text/ — |
|
|
With all due respect, the tutorial is not very useful. RE-read what I asked abut and you will understand my point. |
Hi, the only way to make those changes would be to edit the template files. You’ll want to move them to a safe location before making edits as any customizations to the core plugin folder will be lost on a software update. The original files (event_list_display.php & registration_page_display.php) are located here: /wp-content/plugins/event-espresso/templates/ You can reach that location by connecting to your WordPress site with an SFTP or FTP client such as Cyberduck or FileZilla. Your webhost will be able to provide credentials for connecting to your site. Those two files (event_list_display.php & registration_page_display.php) need to be moved here: /wp-content/uploads/espresso/templates/ Then the edits need to be applied and you should save changes using your SFTP or FTP client. — |
|
|
Lorenzo, Thank you very much for giving the file location. I copied the event_list_display.php to my computer so that I could view it BEFORE it try editing it (so i do don’t risk screwing it up) The problem I am running into is that the event_list_display.php file <?php if ($display_reg_form == ‘Y’ && $externalURL == ”) {?> Instead the closet thing I can find is this text $num_attendees = get_number_of_attendees_reg_limit($event_id, ‘num_attendees’); //Get the number of attendees. Please visit for available parameters for the get_number_of_attendees_reg_limit() function. if ($num_attendees >= $reg_limit) { ?> <p id=”available_spaces-<?php echo $event_id ?>”><span class=”section-title”><?php _e(‘Available Spaces:’, ‘event_espresso’) ?> </span><?php echo get_number_of_attendees_reg_limit($event_id, ‘available_spaces’, ‘All Seats Reserved’) ?></p> <?php if ($overflow_event_id != ‘0’ && $allow_overflow == ‘Y’) { ?> <p id=”register_link-<?php echo $overflow_event_id ?>” class=”register-link-footer”>< a>” href=”<?php echo espresso_reg_url($overflow_event_id); ?>” title=”<?php echo stripslashes_deep($event_name) ?>”><?php _e(‘Join Waiting List’, ‘event_espresso’); ?> a></p> <?php } } else { if ($display_reg_form == ‘Y’ && $externalURL == ”) { ?> <p id=”available_spaces-<?php echo $event_id ?>” class=”spaces-available”><span class=”section-title”><?php _e(‘Available Spaces:’, ‘event_espresso’) ?></span> <?php echo get_number_of_attendees_reg_limit($event_id, ‘available_spaces’) ?></p> <?php It looks like this is a different setup. I am trying to change the Available Spaces and the number to just say “Seats Available” if there are open spaces, and “Class is Filled” if there are no more spaces. Any ideas/help would be greatly appreciated. |
Alright, be sure those files have been copied over to the safe location. Then open the event_display.php file for editing. Change this starting at around line 102: $num_attendees = get_number_of_attendees_reg_limit($event_id, 'num_attendees'); //Get the number of attendees. Please visit https://eventespresso.com/forums/?p=247 for available parameters for the get_number_of_attendees_reg_limit() function. if ($num_attendees >= $reg_limit) { ?> |
|
The support post ‘Change Available Spaces # to Event Open/Closed’ 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.