Hi Stephen – hope you’re keeping well 🙂
We are trying to customise our Thank You message on the booking form for those who pay via paypal. I’ve read the following resources:
http://wp-event-organiser.com/forums/topic/thank-you-message/ and http://docs.wp-event-organiser.com/bookings/changing-the-thank-you-message/ and set up a filter accordingly:
add_filter( 'eventorganiser_pro_get_option_booking_complete_message_paypal', 'paypal_booking_complete' );
function paypal_booking_complete(){
return 'Thank you for your booking. You will receive an invoice and confirmation of your booking shortly.';
}
but we’re having no joy …..perhaps you can see what I’m missing?
(http://www.stjohnschambers.co.uk/events/personal-injury-update-2015/

Michael Waugaman
Hi Michael,
Where did you place that code snippet?

Stephen Harris
it’s in functions.php
am aware of advice regarding using a utility but in our situ our theme is not going anywhere 😉

Michael Waugaman
I moved the above reply here, since I think this was the intended thread. After digging into this it appears there a bug in that the PayPal encodes the hash tag in the return url. The handling of messages based on the gateway used is at this point very basic (and needs to be revisited) – and this unfortunately breaks it.
A work around is to use the generic (gateway agnostic) filter:
eventorganiser_pro_get_option_booking_complete_message
If you are using other gateways, you can change the message back again (or to something else entirely) by using the gateway specific hook:
eventorganiser_pro_get_option_booking_complete_message_{gateway}
Where {gateway}
is replaced by the gateway identifier.

Stephen Harris
Right – so just to make sure I get this straight:
1) we have an issue with the paypal filter
2) work around to get paypal mssg to work is to set a general filter for all messages
3) other gateways (we only use paypal & free) can then be handled directly as tried with paypal to start with …..
got it & as always, thanks for prompt support 🙂

Michael Waugaman