
AK
Thank you for looking into this!
Yes, I agree…think I will contact them again regarding regular expression matching for the event slug.
I really appreciate the code snippet but would would have preferred the original setup with the form on the actual events page…would it help to exclude page with “#eo-bookings” argument…could there be an appropriate error message if a cached version of the events page tries to book over capacity + reset the form?
…I guess making it cache safe
Thanks!

Stephen Harris
Hi,
That’s odd, most caching plug-ins allow you to exclude multiple pages using regular expression matching.
In anycase, it would be possible to have a dedicated booking page (with a few lines of code).
There is a filter to disable the booking form from appearing on the events page:
add_filter( 'eventorganiser_pro_get_option_disable_automatic_form', '__return_true' );
Typically you would then add a shortcode to a page, but the shortcode requires you pass the event ID of the event you want to display the booking form for. However, instead of hardcoding the event ID you could create a page template which contained this code:
$event_id = (int) $_GET['eventId'];
if($event_id > 0 && get_post_type($event_id) === 'event'){
echo do_shortcode(sprintf('[event_booking_form event_id=%d]', $event_id));
}
Then you can link to the booking page:
yoursite.com/booking-form-page?evenId=<event-id>
That would allow you to exclude a single page from the WP Engine’s cache.
If you need any help setting this up, just let me know.

AK
Hi again,
Do you know of a way that could trigger cache exclusion of booking form pages? Are any cookies set here?
Would it be possible to have a “Book” -button on the event page, that opens up a new smaller window containing only the booking form
…and exclude that page from cache?
Is it only the “tickets availability” -functionality that makes booking forms -pages unsuitable for cache?
…would it be possible to disable the option of setting “max tickets” per event?
Grateful for your advise on this!
Thanks!

AK
Thank you,
So, is it confirmed that the above was related to WP Engine cache?
I was just chatting with a support agent at WP Engine and they could not find any issues related to WP Engine cache + Event Organiser.
I also asked if it would be possible to exclude a whole CPT (“Event”) from their cache but unfortunately this is not possible:
“We would be able to exclude a page, argument or cookie from cache so if it was one of those then for sure we could” …”we would not be able to only exclude the custom post type”
Excluding specific pages as soon as a “booking form” is available would not an option for us.
Not sure how to proceed with this, we would love to start working with Event Organiser Pro including booking but need to know that it´s working well at WP Engine ?
Thanks!

Stephen Harris
Hi Jorge,
You may want to consider creating a custom field and capturing it on the booking form, and then storing it against the user (as user meta?). I can provide some code on how to do that if that’s an option you want to try.

Stephen Harris
Hi,
I’ve not tested it with WP Engine myself, but a number of customers have been using it without complaints. With regards to the tickets raised, the second was a bug in some third-party code (not related to the cache at all).
The first, was related to the cache. In short, you don’t want to cache the event pages which contain the booking forms. This is because the booking form will need to reflect any changes in the availability of the event.
I hope that helps!

AK
Hi,
I have been testdriving Events Organiser Pro and I believe it has all the features we need.
It feels very intuitive !
We use WP Engine for our hosting, do you know of any known issues with their platform/caching combined with Events Organiser Pro?
I did a search at this forum and found a few threads, for instance:
https://wp-event-organiser.com/forums/topic/strange-bug-with-ticket-cap-and-booking-in-pro/
https://wp-event-organiser.com/forums/topic/issue-with-object-cache-and-wp-engine/
Thanks!

Marv Dorner
Two issues that emerged yesterday. Nothing has been done to the WP install, themes or plugins before this started.
Issue 1:
In the WP dashboard, when we click on “Calendar View”, then click on an event, the screen is entirely greyed out similar to when an AJAX form is launched, but I can’t click on “Event Details,” “Bookings,” “Edit Event,” or “Delete Event.”
In fact to do anything I have to refresh the URL.
This is happening on multiple computers, multiple browsers, in multiple locations. Plugin is updated to most current PRO version and is not throwing out any other errors. Bookings can be viewed clicking on the “Bookings” link and sorting, but the client is very used to doing things this way.
Issue 2:
The page here (https://frontierprecision.com/events/event/1-2-or-3-day-survey-training-opportunity-trimble-certified-training-boise-id) starts to load, them becomes inactive.

Boudewijn van den Breemer
Thank you very much.
Maby you can thonk of future to explore this issue, it would be very usefull.
In my case i want to collect data about the user in the booking form and would like that info to be connected to user page. For exemple to collect users birthday date there on option as the date option doents show paste dates.
Thank you very much
Jorge

Stephen Harris
Hi Boudewijn,
Unfortunately you can’t embed your own registration form into the booking form. You could add custom fields and use custom code to set up the data, or you could restrict bookings to logged-in users and link the users to your custom sign-up page.
You can alter the message appears to a guest user if guest bookings are disabled as follows:
add_filter('eventorganiser_booking_login_required', function() {
return "Only logged-in users can place a booking. Sign up <a href='http://url/to/your/signup/page'>here</a>";
});
As for Google-captcha, I’ll look into adding that to the next update.

Boudewijn van den Breemer
Hello
When choosing the option of creating a account for user i would like to display my website costum registration form as event booking form is very pour in terms of fiels and i would like the colected data to be connected to users profile.
Also in the booking form would be nice to add google recaptacha to validate the booking or similar function.
Any help would be helpfulll?

Stephen Harris
Hi Marcus,
I’m afraid I don’t think the plug-in can help here – it was designed for selling tickets for events, not as booking platform.
At best you could create a single ticket for each of the beds, and then require a customer wanting a private room to book two tickets. You could then use a discount code to reduce the price.
Of course, from an end-user perspective this might create a jarring experience but ultimately you could create your own front-end which presents the user with a more intuitive interface and maps that to a valid booking request (The booking form just POST
s data to a URL, so you could do that in the background).

Stephen Harris
Hi Sharon,
Are you suggesting to modify the form code to ie. exclude the special
ticket types ? But how would we then add the booking information for
those people ?
Yes – if the user shouldn’t be able to book the special ticket types.
Event Organiser has only one booking form per event – so the previous strategy of giving users a link that takes them to a different booking form wont work here. What you could do is append a random ‘token’ to the URL (e.g. yoursite.com/events/event/an-event?token=...
) and then modify the booking form to hide the special ticket types if that token is present and valid.

Sharon McErlane
Hi Stephen,
Thanks for your response.
Those people would in the past receive a special link to the booking system allowing them to book the ‘special’ ticket type, which wasn’t visible on the normal booking form.
Are you suggesting to modify the form code to ie. exclude the special ticket types ?
But how would we then add the booking information for those people ?

Marcus Hertel
I have the following problem:
My customers wants to use the event organiser for some kind of vacation booking plattform (which works fine):
But we have the following problem:
Imagine there are 6 rooms with 2 beds. You can book a single bed in a shared room for 700€. Or you can book a bed in a private room (technically the same room) for 1.100€.
Now my problem:
If somebody books a premium ticket (private room) 2 standard tickets have to disappear.
And in the same way its impossible to book a premium ticket if only 1 bed is free.
My customer just created individual tickets and its possible to overbook the system.