
Judy Kavanagh
Our addition of online booking of classes is nearly done and our workshop coordinator is really pleased.
A couple of small things remain. Here’s an example page. Copper Weaving
-
Can I get the Dates at the top to include the day of the week? The Days(s) field below is a custom field. It is redundant but needed now to display the day.
-
In the registration form the Phone field is not getting the same style as the other fields. Where can I set this? I poked around in the event-organiser-pro/css directory but couldn’t figure it out.
-
Can I change the size of a text box (the Note field at the bottom of the form). Input is a bit too small and Textarea is a bit too large.
Thanks

Stephen Harris
Hi Judy,
I replied to the other thread regarding including a custom field. Hopefully that will work for you.
You can include the event date as follows:
%event_date{'d F Y'}{'G:ia'}%
(The string 'd F Y'
and 'G:ia'
are just the desired format of the date and time components respectively of the event’s datetime). This page contains a list of available email tags.

Stephen Harris
Hi Marciel,
At this point the only way of creating a booking is to go through the booking form on the front-end of the website.

Stephen Harris
Hi Daniele,
I don’t have any experience with Polylang or any other multlingual plug-in, but I know other customers use Polylang with Event Organiser without complaint.
One thing to note is that I believe Polylang translates post types (in this case, events) by creating a duplicate one. If you set up bookings on the translation (as well as the original) you’ll essentially end up with two, independent events which users can book for. To avoid that I would recommend that you do not set up bookings for the translated events, but instead add this shortcode: http://docs.wp-event-organiser.com/shortcodes/booking-form/ , setting the event ID to that of the original event.

Judy Kavanagh
I have checked “Notify me when a new booking is made” but I don’t receive any emails. The emails to the customer are arriving ok. I changed the email address associated with the admin account but it still doesn’t work.
Test form is here
http://www.ovwsg.com/?event=spinning-for-cats&booking-confirmation=offline#eo-bookings
Thanks

Stephen Harris
Have you definitely done the step:
EO_Booking_Form_Controller::register(
'file', //element type ID
'Fichier', //Label for the form customiser
'http://yoursite.com/url/to/backbone-model.js', //url to customiser 'model'
'http://yoursite.com/url/to/customiser-view.tmpl',//url to customiser view
'advanced' //which metabox to add the button to: standard, advanced
);
I would expect that error, if the field is not registered with the controller.

Stephen Harris
Hi Kim,
I’ve implemented something similar to this as a custom plug-in. I’d be happy to share it with you if you think it would work for you. Rather than set the available gateways from within a booking form, it is configured on an event by event basis using a custom field.
The UX isn’t great: you enter the name of the gateways in a comma-separated listed into a custom field for the event, and the gateway is available for that event if it’s enabled in the gateway settings and also included in that list for that event.
I will, however, consider making it possible to configure the available gateways at the booking form level.

Kim Harding
Would it be possible to make the choice of payment gateway available from the Gateway picker – ID: gateway field? So that different booking forms can be set to have different payment gateways.

Kim Norton
The following error message is showing up for people trying to book.
Date and number of tickets is selected but this message still shows up.
“Please select an event
Please select a ticket”
Thanks for any help

Stephen Harris
You wouldn’t need to modify a file. Just go to Settings > Event Organiser > Booking Form. Add an HTML element to the appropriate form and place it just above the gateway element. Then enter in any of the HTML you like. (You could get the mark-up of the images the Stripe gateway option uses by enabling another gateway, and doing inspect element in your browser).

Tony Scales
Hi Stephen,
I have continued testing the iDeal mollie payment.
I receive the below message when using the payment panel setting, “Status of your payment:= paid” see attached
+++++++++++++++++++++++++++++++++++++++++++++++
string(83) “http://wadaca.webseiten.cc/events/event/register/?booking-confirmation=ideal-mollie”
Warning: Cannot modify header information – headers already sent by (output started at /kunden/112563_73765/rp-hosting/5005132/6005132/wordpress/tickets/wp-content/plugins/event-organiser-ideal-mollie/class-eo-ideal-mollie-payment-gateway.php:313) in /kunden/112563_73765/rp-hosting/5005132/6005132/wordpress/tickets/wp-includes/pluggable.php on line 1216
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Should I ignore this as I am in test mode “TMB bank”
or is it due to not using HTTPS with the test domain
The payment is confirm in the wordpress Events> Bookings section.

Thanks.
Regards,
Tony

Stephen Harris
Hi Shaun,
The eo-booking-form.php
template (in event-organiser-pro/templates
) does this:
$occurrence_tickets = eo_get_the_occurrences_tickets( $booking_form->get( 'event_id' ) );
....
} elseif ( ! $occurrence_tickets || ! eventorganiser_list_sum( $occurrence_tickets, 'available' ) ) {
...
}
More generally:
$event_id = get_the_ID();
$occurrence_tickets = eo_get_the_occurrences_tickets( $event_id );
$sold_out = ! $occurrence_tickets || ! eventorganiser_list_sum( $occurrence_tickets, 'available' );
if ( $sold_out ) {
}

Lisa Sickles
PHP Fatal error: Uncaught AuthorizeNetException: Error: no field currency_code exists in the AIM API. To set a custom field use setCustomField(‘field’,’value’) instead. in /wpcom-137277233/wp-content/plugins/ec-authorizenet/anet_php_sdk/lib/AuthorizeNetAIM.php:308 Stack trace: #0 /wpcom-137277233/wp-content/plugins/ec-authorizenet/anet_php_sdk/lib/AuthorizeNetAIM.php(239): AuthorizeNetAIM->setField(‘currency_code’, ‘USD’) #1 /wpcom-137277233/wp-content/plugins/event-organiser-authorize-net/class-eo-authorize-net-payment-gateway.php(284): AuthorizeNetAIM->setFields(Array) #2 /wordpress/core/4.9/wp-includes/class-wp-hook.php(286): EO_Authorize_Net_Payment_Gateway->process(317, Array, Object(WP_Error), Object(EO_Booking_Form)) #3 /wordpress/core/4.9/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array) #4 /wordpress/core/4.9/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #5 /wpcom-137277233/wp-content/plugins/event-organiser-pro/includes/booking-actions.p

Stephen Harris
Hi Tony,
Yes that’s fine.
As for using radio boxes, and ensuring that a booking can only contain one ticket is also possible, and relatively straightforward. It’s been addressed on the forums already, but if you need any help I’d be happy to give details on this.
The focus of your question seemed to be more on the checkbox and the manipulation of the price. The best I can do here is point you to the VAT extension plug-in and/or the discount code extension.
The VAT extension might be helpful to work from. In that extension there is a configurable percentages for which to apply to bookings. In your case, you could replace this with 100%. The difference is that you want to conditionally check if the checkbox is selected here (simply jQuery check would suffice).
You could add that checkbox field using the booking form customiser. That would ensure the user’s selection is stored against the booking. It’s important to note that when changing the price of the booking you do it in two places: 1) via JavaScript to display the price change to users, and 2) via PHP to actual change the amount that is stored, passed to the payment gateway etc. For (2) you can check the value stored against the booking for the checkbox field you added and conditionally change it here.
I’m happy to go into more detail if required, or answer any further questions you have.

Stephen Harris
The .po
file is just the human-readable file for editing translations. From that you would need to create a .mo
file, which is what the plug-in uses for translation. Software like poedit can do that. You would also need to store it, appropriately named in wp-content/languages
to prevent the changes from being lost on an update (see http://docs.wp-event-organiser.com/i18n/ for details).
However, a much better way would be to use the following snippet:
add_action( 'eventorganiser_get_event_booking_form', function( $form, $event_id ){
$labels = array(
'street-address' => __( 'Street Address', 'eventorganiserp' ),
'2nd-line' => __( 'Address Line 2', 'eventorganiserp' ),
'city' => __( 'City', 'eventorganiserp' ),
'state' => __( 'Region/County', 'eventorganiserp' ),
'postcode' => __( 'Postcode', 'eventorganiserp' ),
'country' => __( 'Country', 'eventorganiserp' ),
);
$elements = $form->flatten_elements();
foreach( $elements as $element ){
if( 'address' == $element->type ){
$element->set( 'subfield_labels', $labels );
}
}
}, 10, 2 );
Just change the label values to whatever you want them to be.
Yes, it’s possible to upgrade, I’ll be in touch with a discount code you can use to purchase a developer license.