
Stuart Grierson
Is there any way to alter the content of the email that is sent to confirm a booking?
It currently displays something like this
Dear John Smith, Thank you for booking with Grow Again.
Your Booking Information:
Hello World Event
11th March 2014
Ticket Price Ref.
Standard £12.00 abc123
Standard £12.00 def456
Student £10.00 a1b2c3
Total £34.00
. Your booking reference is 1234
All I want to do is change the Ticket Heading on the table to something more appropriate to my site like “Booking Type”
I have ticket/booking types like
Course Only
Course + Single Room
Course + Double Room (2People)
I have changed all references on the front end by altering the appropriate template files but that bit of the email template is generated by an included function I think.

Barry Meadows
This is why I think I’ve done something wrong as existing events are working as expected, its just the new one; since I last wrote I’ve done some further playing and made the ticket appear. I think it was when I edited the ‘spaces’ field – if the spaces field is blank does this mean unlimited spaces or no spaces? If it is the latter (ie no spaces) should a partial booking form be shown or a ‘no tickets available’ message?

Stephen Harris
Hi Barry,
Have you enabled ‘Simple Booking Mode’? (On the form customiser page, check the settings tab). ‘Simple Booking Mode’ comes into effect if:
- its enabled in the settings
- and there is only one ticket on sale
- and the event is a single event or you are selling by series
It hides all the ‘unnecessary’ parts of the form (e.g. date selection & ticket selection) and effectively forces the booking to contain only one ticket. If you want users to be able to choose the quantity, simply disable that setting.

Barry Meadows
I’ve just set up a new event, which occurs on a single day, with a one price ticket.
I can only get a ticket option to show on the booking form if I create two ticket types, then the first will show. The form shows but without any tickets to select from until I add the second ticket type. I’m using the standard form without any extras.<br />
What have I done wrong?

Stephen Harris
Hi Barry,
The compatibility was in reference to the booking form in particular, and venue/category pages weren’t affected by 1.6.*. I’ll take a look at the TwentyFourteen theme and see what can be done to resolve the problem.

zwazo
Hi Stephen,
here the output,
Fatal error: Cannot use object of type stdClass as array in /home/site/www/wp-content/plugins/event-organiser-pro/includes/form-customiser/class-eo-booking-form-view.php on line 78
I sent you a mail this afternoon on your gmail account but it is missing the ftp information.
I’ll send it now.
Best regards,
Jef

Stephen Harris
Hi Luis,
Could you try changing line 78 of /includes/form-customiser/class-eo-booking-form-view.php
to
$ticket = (array) $tickets[$t_id];
$ticket['available'] = min( $ticket['spaces'], $set_spaces['tickets'][$t_id] );
$tickets[$t_id] = (object) $ticket;
Also, do you know which php version you are running?
There’ll be update later tonight to address this.

zwazo
Hello,
When trying to book an event from the front office, the wordpress returns a blank page after the form submission.
The reservation is not stored in the database.
I am using off-line payment option.
Any idea ?
All the best.
Jef

Luis Delgado
Hey,
I have installed Event Organiser Pro on the website I am working on but cannot seem to connect PayPal as a gateway successfully.
The website is a cooking school and I am trying to sell tickets to classes. http://reallifecookingschool.com/wordpress/schedule/
I have individual events with a working form. The user can select ticket and quantity and the Book Button appears. When the user selects “Book” a fatal error comes up. http://reallifecookingschool.com/wordpress/events/event/class-one/ Please see below:
Fatal error: Cannot use object of type stdClass as array in /data/16/3/63/32/3226195/user/3601679/htdocs/wordpress/wordpress/wp-content/plugins/event-organiser-pro/includes/form-customiser/class-eo-booking-form-view.php on line 78
I have read all of the docuemntation multiple times and have gone through multiple posts in this forum and still have had no success. Are there any real specific directions on how to setup PayPal as a gateway?
Any suggestions are welcome.
Thanks again
-Luis

Stephen Harris
Hi Stacie,
That’s correct – as far as the plug-in is concerned each ticket purchased is the equivalent to one person. It is potentially possible to force users to select an even numbers of tickets (this would involve some javascript to handle the user-interface aspect, and then php to ensure that the number of tickets is ‘valid’ when the booking is inserted into the database). But that’s not great from a end-user’s perspective and might be confusing to some.
Another way would be to use the discount extension: you could create a discount of $10 whenever two or more tickets are purchased. (Unfortunately the user will have to enter a discount code, and a ticket of 4 people will still only get $10 discount). If that isn’t a suitable solution then we could discuss other ones – feel free to get in touch via this form.

Roel Weber
So I bought the pro version to make use of the booking system.
Now when I try to book, I fill in the user details (firstname, lastname, email) and click on the book button, I get the following errors:
Warning: array_flip() expects parameter 1 to be array, string given in /home/huisvoorbeweging.nl/public_html/dev/wp-content/plugins/event-organiser-pro/includes/booking-tickets.php on line 351
Warning: array_intersect_key() [function.array-intersect-key]: Argument #2 is not an array in /home/huisvoorbeweging.nl/public_html/dev/wp-content/plugins/event-organiser-pro/includes/booking-tickets.php on line 351
Fatal error: Cannot use object of type stdClass as array in /home/huisvoorbeweging.nl/public_html/dev/wp-content/plugins/event-organiser-pro/includes/form-customiser/class-eo-booking-form-view.php on line 78
Also weird is, when I’m logged in and I try to book I get the same errors and it logs me out.

Stephen Harris
Hi Natalie,
This is exactly what’s been done in the latest update (1.6) :). There is also an option to switch from a datepicker to a drop-down menu in cases where they are only a few, but widely spaced dates (just click the ticket picker options on the booking form customiser page to reveal the option).

Stephen Harris
Ah, I see. It’s not as straightforward to add tags for the event list widget, but you can copy the appropriate template in to your theme and edit it instead of using the tags – this seems like a situation when this would be best. The template for the shortcode is shortcode-event-list.php
(you can find it in the templates folder in Event Organiser).
You could then using the following to display the event date(s) according to the three cases you mentioned:
//Format date according to whether the event is all day or not
$format = eo_is_all_day() ? get_option( 'date_format' ) : get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ;
if( !eo_reoccurs() && ( eo_get_the_start( 'Y-m-d' ) !== eo_get_the_end( 'Y-m-d' ) ) ){
//Event does not recur and it is a 'long' event: display start and end time
echo eo_get_the_start( $format ) . ' – ' . eo_get_the_end( $format );
}elseif( !eo_reoccurs() ){
//Event does not recur but it not is a 'long' event: display start
echo eo_get_the_start( $format );
}else{
//Event recurs: display list
$event_id = eo_get_booking_meta( $booking_id, 'event_id' );
$occurrences = eo_get_the_occurrences_of( $event_id );
$formatted_dates = array();
if( $occurrences ){
foreach( $occurrences as $occurrence) {
$formatted_dates[] = eo_format_datetime( $occurrence['start'] , 'jS F' );
}
}
echo implode( ', ', $formatted_dates );
}
(I wasn’t quite sure if “event on several specific days the list of days” meant ‘custom’ recurring pattern or “event over a period of time” meant a ‘long’ event (events where each occurrence passes over two or more days). But in case you want to differentiate between different types of recurring pattern:
$event_schedule = eo_get_event_schedule();
//$event_schedule['schedule'] is one of once, custom, daily, weekly, monthly or yearly

Stephen Harris
Yes, as per the snippet on that thread, you could add an additional item to the PayPal cart: the “booking fee”. But you will want to make it clear to your users that a booking fee will be applied before they get to PayPal. One way would be to add a row to the booking form ticket table. The VAT extension does that to add a VAT row and adjust the total as it appears on the booking form. If you wanted to checkout the VAT extension – its available for free here: http://wordpress.org/plugins/event-organiser-vat/
When ‘priced fields’ are added, a add neat way of adding a booking fee would be to add a ‘priced’ checkbox which is required to be checked. Which will make it clear to the user that a booking fee will be applied.