Posted: January 7, 2014 at 4:38 pm
We have recently had an event overbooked. I searched through the forums and most cases where people have had this they have not properly set limits. However in our case our event was set with an attendee limit of 20. When viewing the event it shows “Attendees: 21/20”. Is there anything we can do to prevent this in the future? |
|
Hi Al, Event Espresso 3.1.36 added a check for available spaces on registration form submit along with a setting in Event Espresso>General settings that can be adjusted to reduce the Ticket Reservation Time. The ticket reservation time can be shortened to reduce the likelihood of an overbooking. |
|
Hey, Josh: A 60 min. reservation time seems to be recommended according to your instructions. Is that correct? Also, where can I activate “Check for available spaces” on the registration form? Thanks in advance. |
|
Those are general recommendations and the amount of time your events take to sell out should be taken into consideration. There isn’t an option that you set to check for available spaces, it happens automatically. |
|
Hi Josh, would you be able to point me in the direction of the modified code for this change? (registration form submit check). We are running 3.1.34.1 but it is modded so I’d prefer to update the specific code. I am also just curious why there was not already a check for available spaces when you have an attendee limit? Or was this more of rare occurrence and this fix was just to help? |
|
Hi Al, There was already a check in place (and it’s still there) that displays the registration form only if there are available spaces. This was added as an additional check to help for the rare occurrence that the first check was not enough. So it helps in those cases. I checked and these were the files that were touched when this feature was added: espresso.php |
|
Hi Josh is there a specific occurrence that you have found this happening? |
|
There were reports from customers, yes, so we added the feature to help out. |
|
But was there a specific time it was happening? Such as when users registered through to cart, or something like that? |
|
Hi Al, It was when users registered through the cart or a single registration page. It affected both types of registration. You can test this out and see how it works by setting up an event with one available space. Then, with one browser view the event’s registration form page (fill out the form but do not pay). Then, in another browser open the same page. In the older version of Event Espresso you’ll see that a registration form displays in the second browser. Then newer version of Event Espresso will not display the second form under these conditions, which can help prevent overbooking. |
|
Is there any way we can check this with out upgrading? Some hook or check we can see current attendees then hide the forms? |
|
Hi Al, No. This is because more than hooks were added, the checks involve new functions that were added in the new version. The older versions did not have the functions that run the checks. |
|
Just to confirm, there was multiple files edited to apply this fix? I am curious if we can simply update 1 or 2 files to apply the “fix” |
|
Hi Al, The files that are listed in the changeset where code was changed/added for this feature are: espresso.php |
|
I guess, I can attempt to simply change those files, and see if it doesn’t break right? |
|
|
Your best long term strategy is to identify what custom modifications you have made and to move those customizations out of EE’s core files. Where there are hooks available, use them. If there are no hooks available, but the function you are changing has a plugable wrapper, copy the function to a file outside of EE core before you modify it. If here is no plugable wrapper and you really need to modify the function, add a plugable wrapper to the function. It would be a lot easier to update and re-add the plugable function wrappers to the updated version than to put yourself on a non-updateable path and continue to suffer from bugs that we have fixed. |
The support post ‘Event Overbooked’ 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.