Search Results for 'booking form'
WordPress Event Management, Calendars & Registration › Forums › Search › Search Results for 'booking form'
-
AuthorSearch Results
-
August 4, 2014 at 11:47 am #11929
In reply to: No Booking-Button after Update – Event booking form
Stephen HarrisHi Adrian,
That is for 1.8 (currently in beta), But yes, after updating to 1.8, you’ll want to remove the button from the booking form template if you have edited or moved it.
August 4, 2014 at 11:47 am #11928In reply to: No Booking-Button after Update – Event booking form
Stephen HarrisHi Adrian,
That is for 1.8 (currently in beta), But yes, after updating to 1.8, you’ll want to remove the button from the booking form template if you have edited or moved it.
August 4, 2014 at 11:44 am #11926In reply to: Bookings that run the same time
Stephen HarrisHi Jody,
This is possible. On the booking form validation hook (
eventorganiser_validate_booking_form_submission
) you can do one of two things:- Look up events this user is attending and check the dates don’t overlap
- Look up all concurrent events and check that the user has not booked for any of them.
The only difference will a slight performance gain depending on whether you have a lot concurrent events or potentially users booking a lot of events. The latter is probably more likely, so below that’s what I’ve gone with. It requires Pro 1.7+ because of the newer hook used (there is another deprecated one used in old versions).
function my_check_bookings_dont_clash( $form ){ $event_id = (int) $form->get( 'event_id' ); //I'm assuming you're booking by date too $occurrence_id = (int) $form->get( 'occurrence_id' ); $event_starts = eo_get_the_start( DATETIMEOBJ, $event_id, null, $occurrence_id ); $event_ends = eo_get_the_end( DATETIMEOBJ, $event_id, null, $occurrence_id ); //Find all concurrent events $events = eo_get_events( array( 'event_start_before' => $event_ends, 'event_end_after' => $event_starts, )); if( $events ){ //Get all statuses except 'cancelled'. You may want to change this if you want to ignore 'pending' bookings as well. $statuses = eo_get_booking_statuses( array( 'name' => 'cancelled' ), 'names', 'not' ); $user_id = get_current_user_id(); foreach( $events as $event ){ if( eo_user_has_bookings( $user_id, $event->ID, $event->occurrence_id, $statuses ){ $form->add_error( 'booking-clash', sprintf( 'Sorry you\'re already attending "%s" at that time.', get_the_title( $event->ID ) ) ); } } } } add_action( 'eventorganiser_validate_booking_form_submission', 'my_check_bookings_dont_clash', 15 );
This hasn’t been untested, so there maybe a few typos.
Remarks
- You can change the statuses which are checked. In the above we check
if the user has any bookings for any concurrent event which is not cancelled. - It doesn’t ignore the current event being booked. If you want the user to be able to make an additional booking for the same
event, you’ll want to skip where the concurrent event is the same as
the current event being booked
August 3, 2014 at 9:53 pm #11923Topic: No Booking-Button after Update – Event booking form
in forum Report A Bug
Adrian MaleskaI followed your step by step manual how to upgrade the event booking form. And now the submit button is gone. I wonder how this could happen.
Are you sure I should delete the button code? :<div class="eo-booking-purchase-row">
<input type="submit" class="<?php echo esc_attr( $booking_form->get_form_button_classes() );?>" value="<?php echo esc_attr( $booking_form->get_form_button_text() );?>">
</div>" style="display:none" >
Every eo plugin is at the latest version. Ideas?
July 26, 2014 at 1:15 pm #11823In reply to: custom form – no more booking possible
edith mayerhoferThere is another strange thing… in booking_actions.php is the following:
if( !$tickets ){ $form->add_error( ‘invalid_tickets’, __( ‘You have not selected any tickets’, ‘eventorganiserp’ ) );
“You have not selected any tickets” doesn´t show up in the .po file though and cannot be translated. I cannot find out why…
Even the confirmation message on the site after successful booking is not translated.
“Thank you for your booking. You shall receive an e-mail containing your tickets once we have confirmed payment”Do I miss something?
-
This reply was modified 10 years, 11 months ago by
edith mayerhofer.
July 26, 2014 at 12:21 pm #11821In reply to: custom form – no more booking possible
edith mayerhoferHi Stephen, I have successfully updated to 1.7.3. and at least custom booking form is working now – how shall we proceed for 1.8 beta?
-
This reply was modified 10 years, 11 months ago by
edith mayerhofer.
July 24, 2014 at 5:46 pm #11817In reply to: WPML translations have tickets sold out
Stephen HarrisIn the single event template, try this:
global $sitepress; $translated_event_id = get_the_ID(); $default_lang = sitepress->get_default_langage(); $source_event_id = icl_object_id( $translated_event_id, 'event', true, $default_lang ); //$source_event_id should now be the original event ID echo eo_get_booking_form( $source_event_id );
Please note this is untested.
July 22, 2014 at 12:01 pm #11790In reply to: WPML translations have tickets sold out
Alberto RiolfoHi Stephen,
I have the same problem.
I try to use the booking form shortcode
<?php echo do_shortcode('[event_booking_form event_id='.get_the_ID().' ]'); ?>
in the single-event teplate file, but the result is the same “This event has sold out.”.Can you help me please?
thanks
July 21, 2014 at 6:35 pm #11779In reply to: Features in Pro?
Stephen HarrisHi Richard,
Integration with PayPal
Yes, this one of the default gateways provided. (Offline payments being the second).Attendee pre-approval for sensitive events
It would depend how you would like to implement this. You could use the “offline” gateway. Then when an attendee is approved, arrange for payment via PayPal.Something a bit more advanced, (but would require some custom code to implement) would be to redirect the user after making to a page indicating that they will be able to complete the booking once they’ve been approved. And then when approved the bookee is sent an e-mail address through which they can make payment.
Waiting lists
No, unfortunately not.Free events
Yes, absolutely.If you have any further questions, I’d be happy to answer them. If there are features listed above (or otherwise) that the plug-in doesn’t natively provide and are essential to you, I’d be happy to discuss them further with you (feel free to get in touch via this form).
July 21, 2014 at 11:33 am #11774In reply to: Final ticket sold thank you screen
Stephen HarrisJust an update here for anyone else following this thread.
The text that was appearing had been added to the template itself, hence the above fix would not work. (Currently) there is no UI message for altering the “sold out” text.
However, you can copy the booking form template (
event-organiser-pro/templates/eo-booking-form.php
) into your theme and make changes there. However, the recommended way to make this change is to instead add the following to a dedicated plug-in or your theme’sfunctions.php
:function myprefix_suppress_sold_out_message( $message ){ return "My sold out message..."; } add_filter( 'eventorganiser_booking_tickets_sold_out', 'myprefix_suppress_sold_out_message' );
Added in this way, in 1.8, the message will not appear if the user has just purchased the last remaining ticket.
July 17, 2014 at 9:24 pm #11718In reply to: custom form – no more booking possible
Stephen HarrisHi Edith,
Can you confirm what version of Pro you are using. From immediately looking at the form I have a suspicion what the issue is, but this was fixed in the latest version of Pro (1.7.3). If you are using that, then I’ll continue testing.
I need the custom form fields in the confirmation mail to the website owner ….
The message to the site admin is is currently hardcoded, but does include the added fields. The
.po
file iswp-content/event-organiser-pro/languages
. I have noticed some errors regarding the translation of the text which will need to be corrected. The body of the e-mail is generated inincludes/booking-actions.php
(eventorganiser_notify_confirmed_booking()
andeventorganiser_notify_new_booking()
).
Payments will be made offline. So I need a confirmation to the bookee before payment, immediately after sending the form.
You can do this a la Sending an email after an offline booking. As noted in the tutorial there will be an option for this in a future release. (Probably 1.9, or 1.10).
I have to pass at least one hidden field with the booking form.
There’s an API available which allows you to do this for 1.7+
function my_add_field( $form, $event_id ){ $element = new EO_Booking_Form_Element_Hidden( array( 'id' => '_my_hidden_field', //a unique ID 'value' => 'The value of the hidden field' )); //Add the field element, optionally specify where $form->add_element( $element, array( 'at' => 1 ) ); } add_action( 'eventorganiser_get_event_booking_form', 'my_add_field', 10, 2 );
In all the above, any required code snippets should live in a dedicated plug-in. They can live in the theme’s
functions.php
, but this will create extra work whenever you decide to change the theme. You should avoid making changes to the core plug-in, as these will be lost when you update the plug-in.Regarding the 1.8. update, I’ll be in touch in the next few days.
July 17, 2014 at 8:52 pm #11715In reply to: custom form – no more booking possible
edith mayerhoferHi Stephen,
thanks for your quick answer. I am sorry about your testing – I was working at the same time on this page so the default form was on. But any other event has the customized form e.g. http://dev.ml-trainings.de/termine/das-neue-hardselling-verkaufen-heist-verkaufen-teil-2-4
Your offer to update to 1.8. sounds quite good to me. Otherwise I think I would have to make a bunch of customization by myself. If I can avoid it, I would be happy.
There are further issues which I have to solve… maybe something else is covered by 1.8. too…
-
I need the custom form fields in the confirmation mail to the website owner (btw…. German translation of this mail is terrible and I couldn´t find this translation in the German .po file. Where is it?).
-
Payments will be made offline. So I need a confirmation to the bookee before payment, immediately after sending the form.
-
I have to pass at least one hidden field with the booking form.
Please let me know how we can proceed.
Thanks! Edith
-
This reply was modified 10 years, 11 months ago by
edith mayerhofer.
July 17, 2014 at 8:20 pm #11713In reply to: custom form – no more booking possible
Stephen HarrisHi Edith,
I’m very sorry to hear you’re having problems with the plug-in. I’ve tried placing a booking on that dev site, and I wasn’t able to replicate the problem. I had noticed there were no custom fields, so is this only a problem when you add additional fields? If so, is there a link to an event which is experiencing these problems?
Furthermore I am really unhappy with the division of the first name, last name and email – but i think there is no chance to have a neat coherent form before version 1.8.
That is true – and 1.8 is currently in beta (and has been for a few weeks). If you’d like me to help you update the plug-in to 1.8 while it’s in beta then I’d be happy to do that, (and ensure there aren’t any issues). Additionally you’ll be able to ensure the last name is required. (This isn’t done by default, as a lot of users don’t make use of it).
July 17, 2014 at 5:19 pm #11710Topic: custom form – no more booking possible
in forum General Question
edith mayerhoferHi,
i have the pro-version and set up a custom form (example here: http://dev.ml-trainings.de/termine/salesleaders-2/).
But with the custom form I always get errors that i should fill in all mandatory fields and that the tickets are not available. – both wrong.
Any ideas?Furthermore I am really unhappy with the division of the first name, last name and email – but i think there is no chance to have a neat coherent form before version 1.8.
What I cannot understand absolutely though – why is the last name not mandatory? It really should be and I have to have the last name filled in – otherwise how should you handle invoicing?
A lot of questions – I hope you can help.
Thanks.
EdithJuly 17, 2014 at 12:32 pm #11687In reply to: Comparision with EventBrite
Stephen HarrisHi Robin,
I’m afraid I’m not familiar another with EventBrite to offer a meaningful comparison. But you are right in that Event Organiser does not currently offer “conditional logic”. This is currently being beta-tested and will be included in the major release after next (1.9, 1.8 is in beta and to be rolled out in the coming weeks).
However, since bookings forms can be re-used across different events, at first at least, the conditional logic won’t be available with respect to ticket selection.
If you have any questions about what Event Organiser can do, or whether it will your needs I’d be happy to do so.
-
AuthorSearch Results