Search Results for 'booking form'

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

Viewing 15 results - 496 through 510 (of 932 total)
  • Author
    Search Results
  • #17554

    Frank Dandenell

    Hi, I’ve put the booking form in the widget area ( right column ) but I need to alter the layout and place the ticket name, price, nr of tic kets underneath the date picker.
    In what file can I do this?
    I’ve tried editing eo-ticket-picker.php but I see no changes in the output code when publishing.

    I know I’m harrassing you with questions right now Stephen, but I really like your plugin, and want to get the most out of it.

    Best regards, Frank

    #17375

    Alex Steer

    Look like you were bang on.

    I swapped the code for:

    function my_add_element( $form, $event_id ){
    
        $url = explode('?', 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ); 
        $ID = url_to_postid( $url[0] );
    
        $exopone = do_shortcode('[types field="price-option-one" id="'. $ID .'"]');
        $exoptwo = do_shortcode('[types field="price-option-two" id="'. $ID .'"]');
        $exopthree = do_shortcode('[types field="price-option-three" id="'. $ID .'"]');
    
        //Create element to add to the field
        $element = EO_Booking_Form_Element_Factory::create( array(
             'type'     => 'radio',
             'id'       => '_supplementary_contact', //a unique ID
             'required' => 1, //make this field optional
             'options'     => array( 
                    $exopone => $exopone,
                    $exoptwo => $exoptwo,
                    $exopthree => $exopthree
                    ),
             'label'    => 'Please choose a price option'
         ) );
    
        //Add the field element, optionally specify where 
        $form->add_element( $element, array( 'at' => 1 ) ); } 
        add_action( 'eventorganiser_get_event_booking_form', 'my_add_element', 10, 2 );
    

    and it now works as intended – it still needs testing!

    Thanks for pointing me in the right direction.

    • This reply was modified 10 years, 1 month ago by  Stephen Harris.
    #17372

    Alex Steer

    I have the api code in a seperate plugin I created like suggested in the docs.

    My code:

    function my_add_element( $form, $event_id ){

        $exopone = types_render_field("price-option-one", array('output'=>'raw'));
        $exoptwo = types_render_field("price-option-two", array('output'=>'raw'));
        $exopthree = types_render_field("price-option-three", array('output'=>'raw'));
    
    //Create element to add to the field
    $element = EO_Booking_Form_Element_Factory::create( array(
         'type'     => 'radio',
         'id'       => '_supplementary_contact', //a unique ID
         'required' => 1, //make this field optional
         'options'     => array( 
                $exopone => $exopone,
                $exoptwo => $exoptwo,
                $exopthree => $exopthree
                ),
         'label'    => 'Please choose a price option'
    

    ) );

    //Add the field element, optionally specify where
    $form->add_element( $element, array( ‘at’ => 1 ) );
    }
    add_action( ‘eventorganiser_get_event_booking_form’, ‘my_add_element’, 10, 2 );
    ?>

    I was planning to unset them after depending on whether they exist – or use if else.

    #17369

    Alex Steer

    Overall i’m trying to list some radio options which are editable on the events page (in custom fileds) rather than through the booking form editor.

    I have it pulling through the data and creating the radio options (with individual descriptions) depending on whether they are populated.

    This works on the single event page but breaks when the form bounces off validation.

    I’m guessing im loosing access to the declared variables when/after posting.

    Thanks

    #17365

    Stephen Harris

    The best way might be to edit the template file (see event-organiser-pro/templates/booking-form/).

    The EO_Booking_Form_Element class has set( $key, $value ) and get( $key ) methods so you can pass any data to the templates (e.g. array of descriptions indexed by option value).

    I’d recommend prefixing your key with some unique to avoid any collisions with core’s keys.

    #17335

    Alex Steer

    Hello,

    Is it possible to hardcode an input field in a booking form and post it to the system?

    It would also need to use the validation.

    How would I go about that, is there a snippet?

    Many thanks.

    • This topic was modified 10 years, 1 month ago by  Alex Steer.

    Paddy Thorne

    Hi there,
    I have been really impressed with your plugin so far, but have hit an issue which I was hoping you could help with.
    I have an Event setup which is currently taking Free registrations. I have capped the number of registrations to 700and have so far taken 216 registrations in a couple of hours.
    The system seems to be working, however, when a user registers there is no change to the Bookings list until I open the admin confirmation email and view the Booking and hit save.
    So far I have had to open 216 emails and open the Booking and hit save.
    Now, if this is the only way to do it, fair enough, but I am sure that this is meant to be a moderately automated system, isnt it?
    Also, once I have hit save and the information is showing in the Bookings list, if I try to Confirm the booking, it disappears from the list and I can find no trace of it anywhere.
    Is there anything you can do to help me get this sorted?
    Thanks,
    Paddy

    #17231

    Stephen Harris

    Yes, the only fields at are on the booking form by default are name / email (logged out users only) and ticket selection (and that can be hidden if simple booking mode is enabled).

    So its possible a logged in user would simply need to click ‘Book’.

    However they would need to go through the chosen payment gateway for each booking.

    #17229

    Rebecca

    Cheers for that.

    In regards to making multiple bookings am I right in thinking if the user is logged in, it would be easier to book other events as they would have less to fill out? If they don’t have to fill the first part of the form out I’m thinking we could work with the fact you can only book one event at a time.

    #17203

    Stephen Harris

    Hi Andy,

    It’s possible to switch the currency (on an event basis) used by PayPal, but there are numerous places in the code where the currency is displayed in an event-agnostic manner (e.g. bookings table), and also in eo_format_price() which formats a price with a currency without any reference to the event. That function, in particular, is used for e-mails.

    Unfortunately it’s not possible to switch the currency based in such a context, which would result in confusing / misleading e-mails.

    #17178

    Stephen Harris

    Hi David,

    There’s no filter for adding classes to the from tag (probably should be), but there is a template file (event-organiser-pro/templates/eo-booking-form.php) you can copy to your theme (theme root directory) and edit it there (it will survive plug-in updates).

    To display a booking form in a template file you can do the following:

    echo eo_get_booking_form( $event_id );
    

    Where $event_id is the ID of the event. You can suppress the booking form being automatically added to the event page you can do the following:

    add_filter( 'eventorganiser_pro_get_option_disable_automatic_form', '__return_true' )
    
    #17168

    Christopher

    Hello Stephen,

    It looks as though your plugin may be the ticket. Before purchasing I would like to know if your event booking calendar can synchronize with airbnb and vrbo. I have two properties that I listed on these services and would like the option for consumers to book through my personal site without double booking. Therefore, I would like your plugin to pull from the existing data to display on my personal website. Airbnb support iCal format. Can your plugin accomplish this? Thank you for your time.

    #17153

    backroads

    Hi,

    We need to implement a drop-down from which the user optionally can select a status (such as unemployed, student, etc.) to get a reduction on the ticket price. Is there a way to reduce the ticket price within the booking form after a selection was made?

    Cheers,
    Lars

    #16950

    Stephen Harris

    Hi David,

    The booking form templates can be found in event-organiser-pro/templates/booking-form.

    However, there are also filters in place to inject framework classes. For instance, the following should ensure the form works well with Bootstrap:

    /**
     * Examples of filters themes can use to easily style the booking form
     */
    
    function mytheme_booking_button_classes( $class, $form ){
    
        //If class is default, then it hasn't been changed by the user, so use the theme's preferred class
        if( 'eo-booking-button' == trim( $class ) ){
            $class = 'btn btn-primary eo-booking-button';
        }
    
        return $class;
    }
    add_filter( 'eventorganiser_booking_button_classes', 'mytheme_booking_button_classes', 10, 2 );
    
    
    /**
     * Assign appropriate default classes to error/warning notices
     */
    function mytheme_booking_error_classes( $class, $form ){
    
        //If class is default, then it hasn't been changed by the user, so use the theme's preferred class
        if( 'eo-booking-error' == trim( $class ) ){
            $class = 'alert alert-error';
        }
    
        return $class;
    }
    add_filter( 'eventorganiser_booking_error_classes', 'mytheme_booking_error_classes', 10, 2 );
    
    
    /**
     * Assign appropriate default classes to notices
     */
    function mytheme_booking_notice_classes( $class, $form ){
    
        //If class is default, then it hasn't been changed by the user, so use the theme's preferred class
        if( 'eo-booking-notice' == trim( $class ) ){
            $class = 'alert alert-info';
        }
    
        return $class;
    }
    add_filter( 'eventorganiser_booking_notice_classes', 'mytheme_booking_notice_classes', 10, 2 );
    
    
    /**
     * Assign appropriate default classes to form elements
     */
    function mytheme_booking_element_classes( $class, $element ){
        $ignore = array( 'html', 'hidden', 'fieldset', 'terms_conditions', 'hook', 'section', 'button' );
        if( !in_array( $element->type, $ignore ) ){
            $class .= ' form-control ';
        }
        return $class;
    }
    add_filter( 'eventorganiser_booking_element_classes', 'mytheme_booking_element_classes', 10, 2 );
    
    #16946

    David McCourt

    Hi Stephen

    Is it possible to customise the booking form? Is there a template to do this?

    It appears that the booking form is injected into the_content() but I’d like to place it elsewhere and also modify the form code to fit with the framework I’m using.

    Is this possible?

    Thanks

    • This topic was modified 10 years, 2 months ago by  David McCourt.
Viewing 15 results - 496 through 510 (of 932 total)