WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Custom field from user registration in bookings table (8 posts)

  1. Leezig
    Member
    Posted 1 year ago #

    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/

  2. agelonwl
    Member
    Posted 1 year ago #

    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

  3. Leezig
    Member
    Posted 1 year ago #

    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.

  4. Leezig
    Member
    Posted 1 year ago #

    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.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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 :)

  6. Leezig
    Member
    Posted 1 year ago #

    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.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

  8. ruirpr
    Member
    Posted 6 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic