Search Results for 'booking form'

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

Viewing 15 results - 346 through 360 (of 932 total)
  • Author
    Search Results
  • #23874

    Willow

    Hi Stephen,

    Thanks for the quick reply! I changed the code in the event-organiser-pro/templates/eo-booking-form.php file, and added this code to my functions.php file:

    add_filter( 'eventorganiser_bookable_occurrences', function( $bookable, $event_id ) {
    $now      = new DateTime( 'now', eo_get_blog_timezone() );
    $bookable = eo_get_the_occurrences_of( $event_id );
    foreach( $bookable as $occurrence_id => $occurrence ) {
        //Remove events whose end date is in the past
        if ( $now > $occurrence['end'] ) {
            unset( $bookable[$occurrence_id] );
        }
    }
    return eo_get_the_occurrences_of( $event_id );
    }, 10, 2 );
    

    When I look at a past event, the registration form does not show up. Can you see any errors in the code I tried?

    #23824

    Stephen Harris

    Hi Kyle,

    Its possible to configure the behaviour of the datepicker – but there’s no UI for doing so. You’ll have to make the changes using code in a custom plugin / theme’s functions.php.

    More details can be found on this page: http://wp-event-organiser.com/blog/announcements/event-organiser-pro-1-11-0-rc1/ but here’s an example:

    add_action( 'eventorganiser_get_event_booking_form', 'my_set_datepicker_settings', 10, 2 );
    function my_set_datepicker_settings( $form, $event_id ) {
    
        //Get the datepicker to edit
        $datepicker = $form->get_element( 7 ); //change to ID of datepicker
    
        if ( ! $datepicker ) { 
             return;
        }
    
        //Get the data attribute (this will be an array)
        $data = $datepicker->get( 'data' );
    
        //Set the data attributes as required
        $data['dp_min-date'] = '+0d'; //Only allow dates after today
        $data['dp_max-date'] = '+20y'; //... and before 20 years time
        $data['dp_year-range'] = 'c-0:c+15'; //Restrict the year dropdown to +15 years
        $data['dp_append-text'] = '(dd-mm-yyyy)'; //Append text to the field
        $data['dp_show-week'] = true; //show week numbers
    
        //Update the datepicker with the new data attributes
        $datepicker->set( 'data', $data );
    
    }
    
    #23812

    Kyle Klaus

    This is somewhat of a bug/feature request depending on how you look at it. The long and the short of it is I’ve added a date field to the booking form to capture the users birthdate, unfortunately the date picker is locked to a 20 year span around today which doesn’t make much sense for a birthdate field and it does not appear to be configurable in any way.

    Thanks

    #23762

    Frank Dandenell

    Hi, the booking form editor seems to have change.
    I no longer see my entered options for a drop down, all I see is a bunch of code and text mixed up, like below:

    <# if( option_type == 'radio' ){ #>   checked="checked" <# } #> name="{{group}}" value="{{index}}"> <# }else{ #>  checked="checked" <# } #> value="{{index}}"> <# } 
    

    What am I missing?

    Best regards, Frank

    #23704

    In reply to: Double Opt in Booking


    Stephen Harris

    Hi Christoph,

    So this would require a user to click a link in the e-mail before the booking is confirmed? I assume this is for free bookings?

    That’s doable, and I’ll outline how below

    (The codex is in the process of being updated, and some hooks/functions are not documented on the official codex, so I’ve linked to a personal ‘beta’ version)

    1) You’ll want to generate some form of random code or ‘hash’ when the booking is created. This hook http://stephenharris.info/codex/hook-eventorganiser_transition_booking_status.html will fire when a booking changes status and you can you check for the ‘new’ status (not actually a status, but is the ‘old status’ value when a new booking is created). The booking object (third argument) is a WP_Post instance, so you can generate a key and store it in the meta data.

    2) You can register your own email tag for including a link with which to confirm the booking: http://wp-event-organiser.com/blog/tutorial/including-custom-fields-confirmation-e-mail/ – using the booking ID to retrieve the appropriate value

    3) That url should include the code and the booking (something like yoursite.com/booking-confirmation/{booking-id}/{code}). You’ll need to set it up so that hitting that url will cause a script to run which looks up the booking and compares the stored code with the one in the url to ensure they match. If they do, you can confirm the booking.

    4) Lastly you’ll want to make sure that the booking stays at ‘pending’ by preventing the auto-confirm for free bookings: http://wp-event-organiser.com/forums/topic/manually-confirm-free-bookings/

    #23631

    Stephen Harris

    Unfortunately this isn’t possible. An event can only have one venue, so you would need to create them as separate events.

    This might also simplify the ticket list requirement – since each date would have its own page, so there were would be no date selection on the booking form.

    To simplify date generation and content creation (for example, you may want the same content for all these dates) you can create a recurring event and then ‘break’ each one to edit it. When ‘broken’ it is removed from the parent event and created as an event in its own right, but it inherits all the default values. This would save you re-typing the content.

    To ‘break’ an occurrence, go to the calendar and click the date and then click ‘break occurrence’. Please note, that the newly created event will be entirely independent of the event from which it originated. In particular, it will not appear in the dates list of the original event (or vice versa).

    As an example, suppose you have:


    Event A

    • 1st July
    • 2nd July
    • 3rd July

    and you ‘break’ the 2nd July you end up with


    Event A

    • 1st July
    • 3rd July

    Event A (2) – newly created event

    • 2nd July

    If you wanted to include ‘broken’ occurrences in an event list, e.g.:


    Event A

    • 1st July
    • 2nd July (is the date of Event A (2))
    • 3rd July

    Event A (2) – newly created event

    • 1st July (date of original event A)
    • 2nd July
    • 3rd July (date of original event A)

    then I can provide a plugin for this.

    I hope those examples make sense!

    #23627

    In reply to: Ticket List


    Stephen Harris

    OK,

    In that case does the dropdown setting for the ticket picker work for you? It will replace the calendar with a dropdown of dates.

    You can configure this in Settings > Event Organiser > Booking Form and then click the ‘Ticket Picker’ element to show its settings. This option is configured on a form-by-form basis if you have multiple forms..

    #23623

    In reply to: Ticket List


    Stephen Harris

    Hi Christoph,

    The link you gave displayed the tickets in a list, and the dates as a calendar. Its possible to display the dates as a dropdown (edit the ‘ticket picker’ element in the booking form customiser), if that’s what you’re after?

    As for displaying the dates as a list this is more complicated. Bookings can only be for one date (when booking by date) which is why the default booking form requires the user to select a date to book (for recurring events, when booking by date).

    If you were to display dates as a list you would then you perobably need a radio button to indicate which date they are booking for. I think this would be an even more confusing user experience if the user doesn’t realise they can only book one date (at a time) or they accidentally select the wrong (or do not select at all) a date.

    You would also need some custom JavaScript to reflect the user’s selection (booking total etc).

    I’d be happy to offer advice on how to customise the booking form as above, but actual development of the customisation would not be trivial and would also be out-of-scope of support.

    #23613

    Stephen Harris

    Hi Frank,

    Since you are using an external booking platform, you do not need Pro. You will simply need to add a the appropriate link for the event (and/or occurrence). It maybe that you can programatically determine the url given the event and occurrence ID – though more likely you’ll have to store the URL as an event custom field.

    Please note that though that custom fields are for the event not individual dates. If you have multiple dates of the same event and need a different URL for each date you can either create each date as a separate event or use your own data store for the URLs, mapping it to each it date.

    #23601

    Frank Welsch-Lehmann

    Hi,

    I am trying to build an event list by customizing the template which should look like the table on https://www.the-great-dance-of-argentina.org/tickets/

    I think I have identified all required fields using http://codex.wp-event-organiser.com/function-eo_get_venue_address.html and http://codex.wp-event-organiser.com/function-eo_get_venue_name.html

    Question: can I add the URL for the “book” button somewhere? Or will I need the pro version to create a custom field?

    The URL links to an external ticket-booking platform for the artist.

    Thanks,
    Frank

    #23569

    Stephen Harris

    Hi Axel,

    Is the aim to allow a bookees to cancel their own bookings, or for event ‘administrators’ to cancel bookings.

    For the latter, this is only possible from the bookings admin screen. For the former, you can display a list of bookings that the current (logged-in) user has made using this shortcode: http://docs.wp-event-organiser.com/shortcodes/booking-history/. You can allow the user to cancel their own bookings as follows:

    [booking_history bookee_can_cancel=true]
    

    Axel Toth

    Hi Stephen,
    I´m a fresh user of eo-pro with no background of programming or developing.
    I´m handling the website of our local Lions Club and want to implement our clubevents and
    the possibilty to sign up using tickets.
    The Calendar is ready and the booking forms as well.
    So far , so good. I like the flexibility.

    What I can´t find so far and what I need are the following items:

    A shortcode for a page, accessable by our members, with an overview of the attendees and the booked tickets of the upcoming event or events.
    The option to cancel a booking by the member.

    I apologize in advance, if these are topics already discussed in the depths of the forum.
    I would appreciate it, if there´s a guideline for dummies for my needs.
    Regards from Germany
    Axel

    #23512

    Steven Bigwood

    Thanks for you reply Stephen!

    The first bit of code seemed to work, and for a second yesterday I had a test event that let me sell tickets all the way till the end then it started hiding my bookings for real events almost immediately after even when I recreated them. I did notice an update roll-out and did all my testing post that too.

    With the second bit of code I get a syntax error that I thought I had corrected but it seemed to have reverted back on me, I’m not quite sure what you mean by site utility plug-in; can you point me in the direction of a preferred option? Presently I’m getting a parse error that prevents any pages with tickets from loading and have had to supplement with paypal buttons which isn’t preferred at all but I’m just going to revert my booking-form.php code back for now so I can still attempt to have the booking plug-in confirmations work.


    Alex Hofstra

    Hi Stephen,

    Thanks I understand; we do not use booking – specific details but could be the case in future and then you will receive a lot of copies.
    I will try to find a solution outside the system for now.
    I think that it would be meaningful to have the option to include a manual entered email address while drafting the email would be sufficient.
    The trainer or owner of the event could then receive a copy of the information with blank booking-specific details.

    regards


    Alex Hofstra

    Hi Stephen,

    I meant a copy of an email sent from the admin console sent to attendees or bookees
    (events > Bookings > (Select bookees/attendees) >Action > Sent email) were you can draft your email.
    I hope this makes it more clear.

    We sent from this functionality information to the attendees and it would be nice if a copy of this message is sent to a email address.
    I think if I have the right id filter like ‘eventorganiser_bulk_email_headers’ or something I could use your snipped
    ?

Viewing 15 results - 346 through 360 (of 932 total)