Non core booking meta

This topic contains 2 replies, has 1 voice, and was last updated by  Stuart Farish 10 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9058

    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
    #9059

    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
    #9060

    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 10 years, 3 months ago by  Stuart Farish.
    Stuart Farish
Viewing 3 posts - 1 through 3 (of 3 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.