Support

Home Forums Event Espresso Premium Event is full – but not showing "FULL"

Event is full – but not showing "FULL"

Posted: January 14, 2014 at 3:17 am

Viewing 2 reply threads


knut pedersen

January 14, 2014 at 3:17 am

Im almost done now with setting up espresso and it is looking good. I even made it LIVE yesterday, thinking i was finished.

But, what i see is when the class is FULL, it do not change “sign” from register to closed. I see that both images is there they should be, but it still say register. When clicking on it, then it say its closed.. and no chance to register.

Is there a easy way to fix this?

You can see image of it here http://familiehunden.no/wp-content/uploads/2014/01/2014-01-14_110945.png

Hope you can help me.

thanks a lot.


Dean

January 14, 2014 at 6:26 am

Hi Knut,

It looks like it’s a bug where it is using a function that doesn’t exist yet so it is returning the wrong value.

I will raise a ticket to fix this, but if you don’t mind editing the template we can get it working for you now.

In the espresso-template-calendar-table/index.php file, at about line 70 you will see this.

if ( ! has_filter( 'filter_hook_espresso_get_num_available_spaces' ) ){
$open_spots = apply_filters('filter_hook_espresso_get_num_available_spaces', $event->id); //Available in 3.1.37
}else{
$open_spots	= get_number_of_attendees_reg_limit($event->id, 'number_available_spaces', '');
}

Change it to read this

if ( has_filter( 'filter_hook_espresso_get_num_available_spaces' ) ){
$open_spots = apply_filters('filter_hook_espresso_get_num_available_spaces', $event->id); //Available in 3.1.37
}else{
$open_spots	= get_number_of_attendees_reg_limit($event->id, 'number_available_spaces', '');
}

All you are doing is removing the exclamation mark ( ! ) from before the has_filter line.


knut pedersen

January 14, 2014 at 7:25 am

Thanks a lot!That worked 🙂

Viewing 2 reply threads

The support post ‘Event is full – but not showing "FULL"’ 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