Search Results for 'booking form'

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

Viewing 15 results - 451 through 465 (of 932 total)
  • Author
    Search Results
  • #19162

    zwazo

    I think you corrected by yourself… I meant the booking form, not the “boring” form 😉

    #19157

    zwazo

    Hello,

    I understood that in the 1.11.0 release, when all the tickets are sold for an event it is supposed to display “Sold-Out” instead getting the ticket line disappearing from the booking form.

    This is not the case here. The ticket line & selector keep disappearing from the form once fully booked.

    Am I missing something to change this behavior to get the sold-out displayed in place of the seats selector?

    Thanks a lot in advance for your help.

    All the best.

    Jef

    #19154

    Stephen Harris

    Hi Andrew,

    I think to do this you would either need to store a reference to the booking ID in a $_SESSION, or use WP_Session (see this plug-in) .

    In any case, it’s important not to allow the information displayed to be configured by something the user can control – as otherwise the user can manipulate that and see details of a booking which they have not made.

    Actually, even $_SESSION & WP_Session values can be manipulated but what is stored client side is a random ID which points to their session – which is not easily guessed or iterated through like a booking ID.

    This had been considered for core, however some hosts will not support $_SESSION (which is why WP_Session exists), however that’s a substantial library for a feature that’s not actually been requested until now.

    However, you should be able to implement this as a separate plug-in, (and I’d be able to help).

    On the gateway redirect hook you could store the booking ID as a $_SESSION or WP_Session. Then you can retrieve that value and display the information accordingly. This is essentially (1) but using $_SESSION rather than $_GLOBALS (so it survives across page loads – there is generally a redirect after a booking is created). You could use eventorganiser_new_booking but I would be tempted to use the gateway redirect in this instance, as the reason for storing the booking ID in the session data is specific to the ‘concrete’ process of on-site booking as opposed to the “abstract” hook ‘a booking has been created’.

    #19151

    Andrew Shankie

    Hi Stephen,

    Another one here for you.

    In Pro, the feature to redirect the customer to a page is great, however, on that page, I’d like the ability to display some information about the booking they’ve just made. I’ve thought of and tried some options and not had any luck – could you help?

    Things I’ve thought about and tried:

    1. Put the booking ID into $GLOBALS so that the page template can access the booking id using something like:

    `function put_booking_into_globals($booking_id, $booking){
    $GLOBALS[‘eo_last_booking_id’] = $booking_id;</p>

    <p>}</p>

    <p>add_action( ‘eventorganiser_new_booking’, ‘put_booking_into_globals’, 5, 2);`

    This is pretty robust, but puts more guff into the global namespace

    1. Add a query string on the redirect in booking-actions.php around line 528 so that the page receives the booking id in a $_GET

    This works if I hack the plugin, but it’s obviously bad for that reason unless you plan on rolling in a feature. It also gives users a pretty easy way to see what else has been booked on the site

    1. On the page template, just query the bookings for the latest booking. This is bad as obviously there’s scope for error if two bookings happen at the same time

    Any other thoughts?

    #19018

    Stephen Harris

    Assuming you are using v1.11.0, got to Settings > Event Organiser > Bookings and ensure that ‘live’ is selected for ‘Offline Gateway’. Then a few additional fields will appear:

    • a “Offline Payment Email” checkbox – check this to enable the e-mail
    • a text area “Offline Payment (Email) Instructions” – this forms the body of the e-mail
    • a text field “Offline Payment Email Subject” this used as the subject of the e-mail

    The message & subject can contain placeholders listed here: http://docs.wp-event-organiser.com/bookings/emailing-attendees/

    #18996

    Frank Dandenell

    Hi, I aslo want to send confirmation email directly after booking, regardless of any payments.
    I have found the setting called Live switch under Offline payment.
    When it’s set to Live I can make a booking, but I get no confirmation email.
    When it’s set til Disabled, the booking form is not visible.

    How do I set it up so I can have an instant confirmation email sent out?

    Best regards/Frank

    #18903

    Stephen Harris

    Hi Elroy,

    I’ve tested that snippet and it works for me. Please note that by default the user can select any number of tickets, but that snippet will return them to the booking form if they select more than one ticket or have made a prior booking for that event.

    It also occurrence specific: if I have made a booking for event X on date Y and then I could also make a booking for event X on date Z.

    How have you used that snippet, i.e. where have you put it? Also, have you checked that your snippet is being loaded?

    #18902

    Stephen Harris

    Hi David,

    This information is included in the CSV export of tickets rather than bookings.

    If you wanted to include it in bookings, you could use the following snippet:

    add_filter( 'eventorganiser_export_bookings_headers', function( $columns ) {
        $columns['ticket_types'] = 'Ticket types';
        return $columns;
    } );
    
    add_filter( 'eventorganiser_export_bookings_cell_ticket_types', function( $cell, $booking, $export ) {
        $tickets = eo_get_booking_tickets( $item->ID, false );
        $cell    = '';
            if( $tickets ){
                $ticket_names = wp_list_pluck( $tickets, 'ticket_name' );
                $cell = implode( ', ', $ticket_names );
            }       
        return $cell;
    }, 10, 3 );
    
    #18884

    Elroy McFlurine

    Hi –

    I’ve followed the instructions in this tutorial carefully;
    http://wp-event-organiser.com/blog/tutorial/limit-bookings-to-one-ticket/

    however my event form still won’t restrict anything – users can choose as many as they want, as many times as they want until the tickets run out. It seems to behave exactly as it did before I utilized the code.

    This is such a basic requirement, I’m frustrated as I can’t use this product without it, anyone else have any tips on making it work?

    #18869

    Stephen Harris

    Hi Andrew,

    Just to clear up an earlier point: eventorganiser_pre_gateway_booking will fire even if the user is taken away from the page, it simply fires before the payment gateway is invoked to process the payment. It will also fire even if no payment is required. It is a reasonable hook to use, but it is very much tied to the context of placing a booking on the site.

    Regarding your later post, you want to use eo_get_booking_meta() and the meta key: meta_{element-id} ( http://codex.wp-event-organiser.com/function-eo_get_booking_meta.html).

    The $booking array will (may) contain a reference to the EO_Booking_Form instance that initiated the booking. (Again, at present that is a fair assumption – but you just be aware that in the future this might not be the case). In any case, I’d recommend using the booking meta function.

    #18849

    Andrew Shankie

    Hi Stephen,

    A little follow-on question: as I mentioned in the previous post, I’m trying to do a little integration with Mailchimp.

    Here’s how it’ll work: I’ve added a custom checkbox field onto the booking form (which is ticked by default). If it’s ticked, I’ll make a call to Mailchimp’s API to add the email address to a list.

    Above, we agree that eventorganiser_new_booking is probably the right hook – in the callback it gives params $booking_id and $booking. In the returned booking object, it does (buried within some form objects) look like it might include the status of whether my checkbox is checked, but it looks untidy and I’m sure there’s a better way of doing it.

    My inclination is to use eo_get_booking_ticket_meta(), but it doesn’t return anything when called with booking reference numbers.

    Any ideas?

    Thanks in advance as always.

    Best wishes,

    Andrew

    #18845

    Andrew Shankie

    Hi Stephen,

    That’s really useful information. In fact, the hook I suggested would probably be wrong as we’ll be using Stripe, so the user is never taken away to a different payment gateway.

    As I’m not too fussed about whether it’s confirmed (as they’ve asked to subscribe one way or another), I think eventorganiser_new_booking looks like the right one.

    Am I right in thinking that these hooks are currently undocumented? No great shakes as they’re easy enough to find in the source, but might be something worth documenting – I’d think that the use case of “do something else in PHP with information that was submitted” is fairly common.

    Cheers,

    Andrew

    #18732

    In reply to: Styling booking fields


    Stephen Harris

    Hi Francois,

    I mean just copy the files from templates/booking-form into the root of your theme. Then you can edit them without your changes being lost when you update the plug-in.

    Regarding which files to edit to modify the CSS this would be the theme stylesheet. Where that stylesheet lives will vary between themes, but is typically style.css in the theme’s root directory. Some themes will provide a setting for you to add your own CSS without modifying the theme files. Your theme’s developer might be able to provide advice on this too.

Viewing 15 results - 451 through 465 (of 932 total)