Previous month I did some updates to the pro and front end submission form and since then the names of the subscriber are empty in the database. I use the meta field value for “_eo_booking_meta_name” at front-end.
Please check these screenshots to see the difference.
https://i.imgur.com/WEtFk3b.jpg
https://i.imgur.com/arqZaZk.jpg
PS. I have maybe 1 question a year. It should help if you put an autoresponder on this email address wp.event.organiser@gmail.com (or just answer these emails)
Olaf Lederer
Hi Olaf,
When viewing the booking in the booking admin page, can you see the bookee details?
Stephen Harris
Hi Stephen,
check the screenshot:
https://i.imgur.com/fk0pgsD.jpg
Olaf Lederer
Hi Stephen, any news on this question?
My customer becomes a bit nervous…
Olaf Lederer
Hi Olaf,
So in that instance the booking is made by a logged-in user, so the bookee data comes from the wp_user
table, rather than the booking meta table.
If you have a booking object (EO_Booking
, you and get use $booking->get_bookee()->get_display_name()
and $booking->get_bookee()->get_email()
and it will work for both logged-in and guess bookees.
Alternatively if you use the eo_get_booking_meta()
method (see http://codex.wp-event-organiser.com/function-eo_get_bookings.html for example) – that will abstract that logic for you.
Stephen Harris