
Joe Fritsch
How can I offer an booking form with zero tickets?

Stephen Harris
Please note there is currently a bug which prevents the below from working. This will be fixed in 2.0.1
So in the eo-booking-form.php
template you can add the following:
$isAvailable = eventorganiser_list_sum($occurrence_tickets, 'available');
if($isAvailable > 0 ) {
//there are tickets available
} else {
// there are no tickets available.
}

AK
Thank you Stephen,
The “The tickets you have selected are no longer available.” will appear regardless if the event has finished or not, when ticket quantity is set to zero. It will appear after firstname,lastname,email has been filled out + submit. Since the form still has the ticket “field” but without option to set any quantity I guess that triggers this message?
Could you please elaborate a little how I could add a check for this in eo-booking-form?
…yes, you are right this is caused because the user for some reason decides to set 0 for ticket quantity (I guess believing it means the same as no limit)
Thanks!

Stephen Harris
The “Bookings are no longer available for this event” only appears if the event has finished (last occurrence has already started),
If you create tickets then the booking form will appear, unless the event has finished or all tickets currently on sale have sold out.
I appreciate that some users might see the form and not realise the ticket quantity is set to zero. I’m wary about making any changes, but you can add a check yourself in the eo-booking-form.php
template.
The ticket quantity field is a number field, defaulting to 1. So this field must be have been changed by the user.

Urban Norlander
The booking form is not showing up properly on my site.
I´ve been trying different settings but nothing makes it better only worse
Here is my page: https://www.norlanderdialog.se/events/handledning-genom-psykodrama/
I´m using Wallstreet pro as theme.
all the best
/Urban Norlander

AK
Hi,
If someone publish an event where ”Spaces” is set to 0, then the form will appear (without option to change ticket quantity).
After filling out/submit the form, a message will appear: ”The tickets you have selected are no longer available.”.
If however the event starts with ”Space” set to, 4 for example…and a booking is submitted, then if we change space to 0.
The form will not appear but instead the message ”Bookings are no longer available for this event.”
We have had users accidentally setting ”Spaces” to 0, then when they preview the event they don’t notice there is no ticket quantity option.
They only see the form and assumes everything is fine.
I think it would make more sense to either not show the form at all when spaces are set to 0 or always replace the form with the message ”Bookings are no longer available for this event.”.
…never show the form which will not work (because spaces are set to 0 ) ?
We are using the new Beta version
Thanks!

Valentin Wittich
Hi Stephen,
sorry for bother you ones again. I had on an update today an error when the plugin try to update the table wp_eo_booking_ticketmeta
to varchar(255)
.
The error is:
Index column size too large. The maximum column size is 767 bytes.
So I remove manually the index and change the field. But when I tried to recrate the index I get the error ones again.
The MySQL update was:
ALTER TABLE wp_eo_booking_ticketmeta CHANGE COLUMN `meta_key` meta_key varchar(255) default NULL
My DB has following settings:
show global variables like 'innodb_fil%'
# innodb_file_format Barracuda
# innodb_file_format_check ON
# innodb_file_format_max Barracuda
# innodb_file_per_table ON
I have no clue if that is right or wrong but unfortunately it’s the settings from the hoster. It’s still MySQL 5.6.42.
Regards Valentin
— Event Organiser Pro Version 1.11.16

Stephen Harris
If you copy the templates from templates/booking-form
into the room of your theme directory then it should pick them up. E.g. copy eo-booking-form-input.php
from that folder to the root of your theme, and there you can make the appropriate changes.

Jiri Richter
Hi!
I’ve bought the Pro plugin and really appreciate the customizability and transparency of the inner workings.
One thing I can’t get a grip at is how, in a booking form, to move the description above the input field (or any field).
I’ve located the template files for the fields, but I can’t see a way how can I override them. All the other templates in your plugin can be overriden just by putting a template of the same name in the root folder of my theme, but for the fields templates that doesn’t work.
Could you help me out with that?

Reto Scartazzini
Hi Stephen,
thanks for your answer.
Yes under Settings > Event Organiser > Booking form page I see the booking form, i can create a new Booking form but there is no window with the fields right hand side. Save button is there, settings are there, but the additional fields are missing.

Stephen Harris
Hi Reto,
Can you provide some more detail? Can you access the Settings > Event Organiser > Booking form page? Can you see the booking form there, and the fields on the right hand side? If so, what happens if you click a field to add it to the form and save your changes?

Reto Scartazzini
Hi there,
I cannot modify the booking form. There are no additional fields.
Thank you for you help.
Reto

Stephen Harris
Hi Colin,
That’s correct. The only change I otherwise had to make was to update the event to use the newly imported booking form.

Brian Reeves
I removed booking tickets from a recurring event (the event no longer requires tickets) but the “Book Online” button still shows up in the qtip modal when hovering over the event on the Full Calendar display.
When going to the event page no form is shown, so that works correctly. How can I remove the button from the modal?

Stephen Harris
Hi Colin,
I can’t replicate this unfortunately. On the booking form customer can you confirm that the ‘require second name’ checkbox is unchecked.
Are you testing this as a logged-in user? And does that user have a surname entered in their profile? There is a known bug where if a logged-in user doesn’t have a surname, the booking will be rejected (if a surname is required on the original name field) but the name field itself is not displayed – because its removed for logged-in users. I’m asking because its possible – if you are logged -in – that the booking is being rejected because of invalid values for the original name field, but that you’re attributing it to your added field as the original name field does not appear.