
Stephen Harris
Hehe, no problem :).
In includes/form-customiser/class-eo-booking-form-elements-view.php
, line 239 change
$occurrence_tickets = eo_get_the_occurrences_tickets();
to
$occurrence_tickets = eo_get_the_occurrences_tickets( $event_id );
and all should be well…

Jamii Corley
My client would like to see something other than Ticket in the booking header. Is that possible? I haven’t found anything obvious to allow this configuration change.
Thanks! Jamii

Jamii Corley
Thanks! It’s a sad state of affairs when you have to read the code to figure out what that the theme developers what you to enclose anyone else’s shortcodes with [raw] [/raw] to keep it from being frobbed.
I appreciate the pointer to where in the code to look!!

Stephen Harris
Thought I’d post an update here:

Stephen Harris
Hi Jamii,
Thanks, this a known issue (affects the booking form shortcode on non-events page, for non-recurring events (or when booking is by series). There shall be an update shortly to fix this.

Stephen Harris
Hi Jamii,
I found it to be the function mysite_formatter()
which is in lib/core/functions/core.php
. Specifically its the wpautop()
call inside that function which is causing the issue.

Jamii Corley
I’m trying to set up a page that just has a single booking form on it using the event_booking_form
shortcode, as follows:
[event_booking_form event_id=85]
The result is a page that styled very strangely and it’s throwing an error. This occurs
regardless of the theme I’m using. I thought it might be because I had set up a non-standard booking form
so I went back to the original booking form with the same results. I believe I’m running the most current version of the plugin, 2.5.1.
Here’s the error it’s throwing.
Warning: array_pop() expects parameter 1 to be array, boolean given in /users/xxxxxx/public_html/xxxxxxxx.com/wp-content/plugins/event-organiser-pro/templates/eo-ticket-picker.php on line 15
Thanks, Jamii

Jamii Corley
I’ve set up several events and they looked great, but my client wanted me to move the booking form from the end of the event to the middle. I’ve added the hook in my theme’s functions.php file to surpress the form at the end and added a shortcode to add a booking form in the middle. All is well, except I’m getting some additional text in the header of the form which looks like:
class=”eo-booking-ticket-row “
data-eo-ticket-id=”314″data-eo-ticket-name=”Bar Members”data-eo-ticket-price=”99″ > class=”eo-booking-ticket-row “
data-eo-ticket-id=”435″data-eo-ticket-name=”Legislators, Judges, and Staff”data-eo-ticket-price=”20″ >
If I switch themes, of course this goes away, so I’m sure it’s related to the theme I’m using. Can you point me at what I might look at in the theme to figure this out? Thanks!
Jamii

Stephen Harris
Hi Jennifer,
In Settings > Event Organiser > Bookings what option is selected for “Bookings”: “Particular Occurrence” or “Entire series”? To sell tickets for each date you’ll want “Particular Occurrence”, (“by series” is for selling tickets to an event as a whole – for example, a place on a course with several dates – with this selected the booking form doesn’t display a date-picker since you’re not booking a particular date).
(As an aside, the date picker doesn’t appear for single events, regardless of the above option, because the date in that instance can be assumed).

Stephen Harris
Hi Jan,
Since this probably won’t be in 1.6 rather than 1.5, here’s the code for achieving this:
add_filter( 'eventorganiser_email_template_tags', 'my_booking_meta_email_tag', 10, 3 );
function my_booking_meta_email_tag( $parsed_message, $booking_id, $original_message ){
//$parsed_message Email body with tags parsed
//$booking_id The booking ID
//$original_message Email body without tags parsed
$custom_field_id = 5; //ID of the field whose data you want to show
$parsed_message = str_replace(
'%arrive_time%',
eo_get_booking_meta( $booking_id, $custom_field_id, true ),
$parsed_message
);
return $message;
}
With regards to multiple booking forms – your suggestion of using an admin-given ‘label’ is probably the most likely route for 1.6. This will mean an extra option added to each field in the form customiser where you can specify a label (which should be unique within the form, but can be used in multiple times across all forms). This label determines which field is used for the data.
A tag for listig an entire form submission shall be in 1.5.

Jan Wildefeld
We have the same need. In our case bookes can choose from some option when they want to arrive and leave.
The point is: Most of the bookes forget which option they choosed on the website. They want to look the information up and check their emails but the information is missing so they call us and complain! We have to look the information up for them in the wordpress backend.
I do understand that it is complicated to choose selections from the booking form but is it possible to add the whole booking form information to the confirmation email?
In terms of adding selections, my suggestion would be to add a shortcode for each selection. Set up a custom field “Shortcode_Name” where users can add an ID for the shortcode so they can use it in the emails form.

Stephen Harris
Hi Ronald,
What’s the particular context? It sounds like you selling only ticket for a non-recurring event (or by series)? If you’re ok to also then limit them to one ticket, you can enable ‘Simple Booking Mode’ (see settings tab of the form customiser).
If you don’t, then you can copy the template eo-ticket-picker.php
(from event-organiser-pro/templates
) into your theme and edit it there. Specifically, change the line (~71) from
<?php $value = ( isset( $input['tickets'][$ticket_id] ) ? $input['tickets'][$ticket_id] : 0 ); ?>
to
<?php $value = ( isset( $input['tickets'][$ticket_id] ) ? $input['tickets'][$ticket_id] : 1 ); ?>

Ann/Caitlin Wiegand/Everett
I know- I realize that those things are possibe- but what ends up appearing are really complicated long lists– I am not having so much luck with making partitions that are meaningful. So- maybe for the future– if section breaks could be given classes or something like that– i dunno– just a though.
All the best.
CE@WA

Stephen Harris
Hi
- Entire “bookings” area is given ID
eo-bookings
- The ‘booking’ title is given class
eo-booking-title
- The booking form is given ID
eo-booking-form
- Each form element is wrapped in
eo-booking-field
- Each actual form element is given the class
eo-booking-field-X
(where X
is a type identifier, e.g. input, select, number, html etc).
- Labels are given the class
eo-booking-label
E.g. to give all form elements of type ‘input’ 70% width:
.eo-booking-field-input {
width: 70%;
}
Does that help?

Ann/Caitlin Wiegand/Everett
Hey again! Now that I have been using the booking form customization tool- I was hoping you can help me to understand how CSS works with this. Can I give fields classes? Check out our incredibly long form:
http://boyscouts-dpvc.org/?event=voyageur-trace-district-cub-scout-polar-bear-prowl
If I could use css to give sections widths or to give fields classes, I’d be really thrilled.
Hope you are well.
CE @ WA