Search Results for 'booking form'
-
Search Results
-
I wanted to implement a booking form where we have multiple names defined per ticket / booking, where the second name is optional, but could not so far accomplish this.
I exported the form and added an entry thus:
{ "label":"Partner / Guest Name", "name":"SpouseName", "placeholder":"", "required":false, "parent":9999, "label_fname":"First Name", "label_lname":"Last Name", "lname_required":0, "type":"name", "field_name":"spousename", "position":3, "class":"serena-ontario-text-input", "id":"spousename" },
but the code is somehow still treating the above as mandatory. I looked into the code and it seems to be “hardcoded” to treat the name as mandatory. I tried modifying the code to add a new type called “spousename” (replacing the above “type”: “name” with “type” : “spousename”) but I ran into difficulties trying to do so.
If there is an easy way to accomplish the above I would love to hear it!
Thanks
ColinI have one small request for custom reccuring events. I have events (schooling) which are organized in custom reccurences and there could be two or three occurences per day. So we will be happy if there in the custom recurences will not be only date but also time and both informations will be shown at the booking form.
If you interest I can made Czech traslation of the plugin.
Hi Stephen,
we are using the Pro 2.0 BetaI have used the tutorial for attendee questions with the standard for as an example and have 2 problems.
-
when buying 2 tickets it asks for 3 name/email pairs in total , which are saved 3 times (I can see those in the booking)
-
when exporting the tickets. I get 2 ticket lines which is good, but the ticket Holder name and email are empty.
Can you please tell me what is wrong with the custom code ? Or is this linked to the Beta version ?
Thanks
<?php
/*
Plugin Name: Netoflight Event utility Plugin
Description: All of the important functionality of your site belongs in this.
Version: 0.1
License: GPL
Author: Nadia DA
Author URI:
*/function my_attach_attendee_questions( $form ){
//Define the field we want to add $attendee_fields = array( array( 'id' => 'nol-jt-attendee-name', 'type' => 'name', 'required' => true, ), array( 'id' => 'nol-jt-attendee-email', 'type' => 'email', 'required' => true, ), ); //The attendee-questions element acts as a 'holder' for the elements //we want repeated for each ticket $attendee_questions = $form->get_element( 'attendee-questions' ); //If it doesn't exist, we'll create it if ( ! $attendee_questions ) { $ticketpicker = $form->get_element( 'ticketpicker' ); $position = intval( $ticketpicker->get( 'position' ) ) + 1; $parent = $ticketpicker->get_parent(); $parent = ( $parent ? $parent->id : false ); //Create the attendee questions els $attendee_questions = EO_Booking_Form_Element_Factory::create(array( 'id' => 'attendee-questions', 'type' => 'attendee-questions', 'elements' => $attendee_fields, 'ticket_label' => "Ticket: {{{ticketname}}}", )); //Add the attendee questions right after the ticket picker $form->add_element( $attendee_questions, array( 'at' => $position, 'parent' => $parent ) ); } else { //Attendee questions field already exists, optional: over-ride with our elements $attendee_questions->set( 'elements', $attendee_fields ); $attendee_questions->_modelElements->set( $attendee_questions->get('elements'), array( 'form' => $form ) ); }
}
add_action( ‘eventorganiser_get_event_booking_form’, ‘my_attach_attendee_questions’, 5 );add_filter( ‘eventorganiser_export_tickets_headers’, function( $columns ) {
$columns[‘ticket_first_name’] = ‘Ticket Holder (first name)’;
$columns[‘ticket_last_name’] = ‘Ticket Holder (last name)’;
$columns[‘ticket_email’] = ‘Ticket Holder Email’;
return $columns;
} );add_filter( ‘eventorganiser_export_tickets_cell’, function( $cell, $column, $ticket ) {
switch( $column ){ case 'ticket_first_name': $name = eo_get_booking_ticket_meta( $ticket->booking_ticket_id, '_eo_booking_meta_nol-jt-attendee-name' ); //_eo_booking_meta_{field id} return $name[0]; //$name is an array: array( 'first name', 'last name' ); break; case 'ticket_last_name': $name = eo_get_booking_ticket_meta( $ticket->booking_ticket_id, '_eo_booking_meta_nol-jt-attendee-name' ); //_eo_booking_meta_{field id} return $name[1]; //$name is an array: array( 'first name', 'last name' ); break; case 'ticket_email': return eo_get_booking_ticket_meta( $ticket->booking_ticket_id, '_eo_booking_meta_nol-jt-attendee-email', true ); //_eo_booking_meta_{field id} break; default: return $cell; }
}, 10, 3 );
add_filter( ‘eventorganiser_booking_tickets_table’, function( $columns ){
$columns[‘name’] = ‘Ticket owner’;
return $columns;
});add_action( ‘eventorganiser_booking_tickets_table_column’, function( $column_name, $item ){
if( ‘name’ == $column_name ){
$name = (array) eo_get_booking_ticket_meta( $item->booking_ticket_id, ‘_eo_booking_meta_nol-jt-attendee-name’, false );
echo implode( ‘ ‘, $name );
}
},10,2);Hi. The issue I am seeing is that when a user is logged out or does not have an account they are not being redirected to PayPal for payment. There is no error message, the page simply reloads with /#eobookings at the end of the slug. One of my tests did go through as a pending booking even though I was never redirected for payment. I tested logged in, and I am redirected as expected. This is the only payment gateway enabled and is set to live. The license key is valid as it was just updated today, and the plugin is up to date as well.
Please let me know if I can supply any other detail that would help. The form is located here: https://carrierclinic.org/events/mental-health-first-aid-training/.
I’ve put a line of text in the description section in the Email field on my Booking From, but it’s not showing up on the front end.
If a whole booking is cancelled, then it is marked as cancelled, but the booking details are still visible to the admininstrator, giving them an audit trail. If, however, only a ticket within a booking is cancelled the ticket is just removed from the booking’s tickets array. The only evidence of it having been there is the discrepancy between the (hidden) payment received and the (visible) booking total amounts – assuming the tickets weren’t free!
This could easily cause confusion if someone turns up to an event with their original booking confirmation email, which would not match the current bookings showing on the site/downloaded tickets form – with no explanation as to why they don’t match!
(I know that a note can be made by the person who cancels a ticket, but that relies on someone remembering to do this on every occasion).<br />
I guess ways to deal with this would be to keep a revision history of bookings including the ticket meta, or to automatically record a note if the tickets are altered for a booking. Are there any options within the plugin I have missed? -