Support

Home Forums Event Espresso Premium hide sold out events in event listing EE 3.1.36.5.P

hide sold out events in event listing EE 3.1.36.5.P

Posted: September 13, 2014 at 5:52 pm

Viewing 1 reply thread


mgregor

September 13, 2014 at 5:52 pm

by default the EVENT_LIST shortcode shows sold out events. i found this topic and followed these instructions finding the default: code around line 428 in event_list.php. i tried putting the updated file in my theme folder and also tried changing the code in the plugin template file, but still i see the sold out events. is there a better way?


Dean

September 15, 2014 at 1:12 am

Hi,

Try this:


							default:

								 if ( (int)get_number_of_attendees_reg_limit($event_id, 'num_completed') == (int)$reg_limit) {
								 	//do nothing
								} else { 

								//Uncomment to show active status array
								//print_r( event_espresso_get_is_active($event_id));
								if ( empty( $path ) ) {
									include( $template_name );
								} else {
									include( $path );
								}

								}

								break;

Viewing 1 reply thread

The support post ‘hide sold out events in event listing EE 3.1.36.5.P’ 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