Hi Stephen
I’m pretty new to WP and I’m struggling to retrieve the values from additional fields added to the booking form. I’ve followed your tutorial on adding a payment gateway and I’m successfully passing values such as price, bookee name, bookee email etc. to the external payment page. The problem I have is I want to send the postcode and street address as well but I can’t work out how to retrieve these values as they are not available through eo_get_booking_meta(). The documentation says to use get_post_meta() but I can’t for the life of me work this out.
Any help would be greatly appreciated.
Thanks
Stuart

Stuart Farish
Actually I’ve realised I’m not passing the value from the email or name field. The email / name is coming from the registered user profile, not the values in the booking form.
So my question now is, how do I retrieve an arbitrary value from the booking form?
Cheers
Stuart

Stuart Farish
Hi. I’ve figured it out. I just didn’t read far enough!!
For anyone else. Getting a custom field value you have added to the booking form is done as follows: $email = eo_get_booking_meta( $booking_id, ‘meta_4’ ) – Where 4 is the ID on the booking form (in my case the email field I had added)
Cheers Stuart
-
This reply was modified 11 years, 1 month ago by
Stuart Farish.

Stuart Farish