WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] Custom field from user registration in bookings table

[Resolved] Custom field from user registration in bookings table

  • Hi, I need to show a custom field (organisation)from my user registration data in the bookings table/csv file for each event in the admin area. The setup so far is this:

    • Event booking is only open to users registered via WordPress. I have used the booking button placeholder therefore there is no booking form. This works well.
    • I have added an “Organisation” field to the WordPress registration form using Register Plus Redux plugin. This creates a field in user_meta called “rpr_organisation”

    I need to pull the data from this extra field into the bookings tables for all events so that a CSV file can be exported for each event.

    Any ideas?

    http://wordpress.org/extend/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • not sure if I can help you with regards to Register Plus Redux plugins and since I haven’t tried it so basically don’t how it works; however, maybe this can help you out – http://wordpress.org/support/topic/plugin-events-manager-custom-booking-form-in-code?replies=15

    Thanks for replying. I checked the linked article out and although it gives some insight I’m not making any real progress with this.

    I spotted a mistake in my OP:

    “This creates a field in user_meta called “rpr_organisation” ”

    should read:

    “This creates a field in wp_usermeta called “rpr_organisation””

    So, the extra reg fields plugin I’m using is adding the field and data to the wp_usermeta table, I’m just don’t know how to get it from there into the em_bookings table and display it in the admin area.

    Progess! Hacked em-person.php and em-booking.php to get extra fields added by RPR plugin to show in admin area. Dirty but it works. Clean solution welcome but will make do with this for the moment.

    Plugin Author Marcus

    @netweblogic

    NetWebLogic Support

    we do it in Pro for our custom user fields by overriding the filters in those files (pro is an add-on, so em remains installed), you could do the same thing 🙂

    Hi Marcus – I seriously considered going pro but my client wants all user data pulled in via WP registration and not the event booking form which is what pro deals with yes?. I’m more of a front end chap with enough PHP knowledge to work out what’s going on in other people’s code but you’ve lost me on the filters overide bit! Thanks for the pointer though.

    Plugin Author Marcus

    @netweblogic

    NetWebLogic Support

    yes, we don’t have a registration form or a way to customize the reg form.

    however, you can create user fields that get tied to the user account that gets created on registration (or modified if logged in).

    if another plugin uses the wp_usermeta to store information about an account in single rows, then the pro user fields can also access/save information to that same field.

    Progess! Hacked em-person.php and em-booking.php to get extra fields added by RPR plugin to show in admin area. Dirty but it works. Clean solution welcome but will make do with this for the moment.

    Can you show me how you did this? Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Custom field from user registration in bookings table’ is closed to new replies.
Skip to toolbar