Search Results for 'booking form'

WordPress Event Management, Calendars & Registration Forums Search Search Results for 'booking form'

Viewing 15 results - 166 through 180 (of 932 total)
  • Author
    Search Results
  • #32655

    Colin Gajraj

    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
    Colin

    #32352

    Kamil Konečný

    I 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.

    #32326

    Sharon McErlane

    Any news on this please ???

    versions PHP 7.1 , wp 4.9.8

    Also I tested the same plugin on Pro 1.11.15 and there the ticket export works, but that version does not allow editing of bookee name and email , and doesn’t show the meta information (ticket info) when viewing the booking details.


    Sharon McErlane

    Hi Stephen,
    we are using the Pro 2.0 Beta

    I have used the tutorial for attendee questions with the standard for as an example and have 2 problems.

    1. 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)

    2. 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);

    #32245

    David Schmeltzle

    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/.

    #32124

    Stephen Harris

    Not via the form customiser. You can add the field via the API and not set the ‘selected’ property or you could get the radio element you’ve added (ID 23 in the example below) and unset the selected property:

    <?php

     add_action( 'eventorganiser_get_event_booking_form', 'add_field_to_booking_form', 10, 2 );
     function add_field_to_booking_form( $form, $event_id ){
         $radio = EO_Booking_Form_Element_Factory::create( array(
             'type'        => 'radio',
             'id'          => 'my-unique-id', //Must be unique in the form. You should not use 'name', 'ticketpicker', 'gateway' or 'email' as an ID,
             'label'       => 'Select an option:',
             'options'     => array( 'A' => 'Option A', 'B' => 'Option B', 'C' => 'Option C' ),
             'required'    => true, //Default is false
             'description' => "Pick one of the options",
         ) );
    
         $form->add_element( $radio );
     }
    
     add_action( 'eventorganiser_get_event_booking_form', 'add_edit_field_booking_form', 10, 2 );
     function add_edit_field_booking_form( $form, $event_id ){
         $element = $form->get_element( 23 );
         $element->set( 'selected', null ); 
     }
    
    #32047

    Stephen Harris

    Hi Leah,

    At this point the email is required unless the user is logged-in. You can remove the email programatically with:

    add_action( 'eventorganiser_get_event_booking_form', function($form) {
        $form->remove_element( 'email' );
    } );
    

    But this will only stop the email from being displayed: but bookings will be rejected. To prevent that you can do one of two things:

    Edit the code to remove lines 292 and 293 from includes/booking-actions.php which reads:

        if ( !is_email( $email ) ) {
            $form->add_error( 'invalid_bookee_email', __( 'Please provide a valid email address.', 'eventorganiserp' ) );
    

    or, hook into eventorganiser_validate_booking_submission with priority 9 or lower, and re-add the email field, setting a dummy value.

    #32005

    Leah McCloskey

    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.

    #31822

    Maude Picalausa

    Hello Stephen,

    Would it be possible to add the same attachment filter to the eventorganiser_notify_new_booking function in booking-actions.php. We have a legal inscription form which needs to be signed by attendees for assurancee purposes and brought to the event and signed by hand. And we would like to attach it to the first email because many participants make a bank transfer and the confirmation is only on the day itself.

    Many Thanks
    Philippine

    #31813

    Stephen Harris

    templates/eo-ticket-picker.php – that’s the template responsible for the datepicker.

    The very first line is:

    $tickets = eo_get_event_tickets_on_sale( $booking_form->get('event_id') );
    

    which you could replace with

    $tickets = eo_get_event_tickets( $booking_form->get('event_id') );
    

    You’ll want to check within the template for tickets that aren’t on sale yet and indicate that fact on the ticket picker.

    #31637

    Owen Morris

    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?

    #31605

    Kim Harding

    That’s what I thought it was, however, even though I only have one gateway listed both appear on the booking page.

    custom field setting

    Gateways showing on the web page

    #31574

    Kim Harding

    Hi Stephen,

    Could you remind me how to use this again?

    I have two different courses, one aimed at the professionals which need to have the option of offline (invoiced) payments and credit card booking via Stripe.

    The other course is aimed at the general public who only need the credit card booking via Stripe.

    I can’t seem to remove the offline gateway on the event page for the general public. The two courses use different booking forms.

    Thanks.

    #31570

    Stephen Harris

    Hi Zachary,

    Ticket information (beyond total quantity) is not given in the bookings CSV export, but can be obtained through the tickets CSV export.

    It would be possible, via code, to include that information – perhaps as a list – in the booking CSV file if required.

    #31468

    Patrick

    Hi, can you tell me how to show a message like “You have already an actual booking for this event!” if booking form is hidden after (first) booking?

Viewing 15 results - 166 through 180 (of 932 total)