Support

Home Forums Event Espresso Premium WooCommerce/usermeta/WP User Integration

WooCommerce/usermeta/WP User Integration

Posted: October 12, 2015 at 1:43 pm

Viewing 1 reply thread


Oliver Watson

October 12, 2015 at 1:43 pm

Hi there,

Firstly thank you for any help with the following, I appreciate this is a slightly weird request.

In short I have moved an incredibly old members website to wordpress and have used EE4 and have WP User Integration installed as I have a member database (~10000). The site also sells items through woocommerce and as such member’s have their billing address currently assigned within the usermeta table as part of woocommerce as members on average spend more time buying items rather than registering for events so that seemed most sensible to keep the addresses within those usermeta fields.

My questions are, is there any way when a user registers for an event that instead of pulling the information from esp_attendee_meta but to pull it from the usermeta table? I also need additional event info from my attendees (seating preferences and others), which is also stored in the usermeta table. What would then be brilliant is if my members see their information is incorrect that they can update it and it automatically updates their usermeta and is also assigned to the registration.

Failing that would it be possible to put a redirect pause between providing the personal details, which would redirect attendees to update their profile (a page that I can create and specify) and then bring them back to the pick payment page? I can then export the registrations and then match it to my export of the database for the actual address etc (although in reality that is again not that important as the tickets get sent automatically to them using your fantastic ticket service)

—–

Also one unrelated last question, is whether it is possible to have multiple paypal accounts, which are chosen for each event – the money for certain events has to go through different accounts as some are charitable events and others are not.

Many thanks,

Oliver


Josh

  • Support Staff

October 12, 2015 at 3:32 pm

Hi Oliver,

Wow, that’s a big database of users! I can help you with your questions, and I’ll break them up in parts.

is there any way when a user registers for an event that instead of pulling the information from esp_attendee_meta but to pull it from the usermeta table?

It turns out that the WP user integration pulls the information from the _usermeta table as long as they are logged in. Specifically the meta_values from the first_name and last_name metakeys. The email is pulled from the _users table. When they register for an event for the first time, a new row in _esp_attendee_meta is created and is stored as a contact. Typically these are synced between _esp_attendee_meta and _usermeta. Changing the software so that it pulls address info from _usermeta isn’t currently supported.

I also need additional event info from my attendees (seating preferences and others), which is also stored in the usermeta table. What would then be brilliant is if my members see their information is incorrect that they can update it and it automatically updates their usermeta and is also assigned to the registration.

We currently do not have anything built to accomplish this. Where we’re likely heading is adding a new feature that involves adding new contact-level questions groups.

Failing that would it be possible to put a redirect pause between providing the personal details, which would redirect attendees to update their profile (a page that I can create and specify) and then bring them back to the pick payment page?

This is actually possible with some custom PHP development, where you could add a step to the registration checkout by using the WordPress plugin API.

If you or someone on your team is a PHP developer you can take a look at how the AHEE__SPCO__load_reg_steps__reg_steps_to_load filter is used, right in the WP Users integration add-on, to add the step to log in form if the user is logged out. You can model your update profile page code after the way the WP User Integration add-on adds the log in form. Here’s a list of relevant files and class names/functions where that happens:

EED_WP_Users_SPCO.module.php EED_WP_Users_SPCO::set_hooks()
EED_WP_Users_SPCO.module.php EED_WP_Users_SPCO::register_login_reg_step()
EE_SPCO_Reg_Step_WP_User_Login.class.php EE_SPCO_Reg_Step_WP_User_Login

whether it is possible to have multiple paypal accounts, which are chosen for each event

Yes, there is an add-on that you can download from github that adds the ability to set a unique PayPal ID for an event. Here’s a link to its page on Github:

https://github.com/eventespresso/eea-payment-methods-pro

Once you have the add-on installed and set up (you can follow the instructions in the readme.md file), a meta key field in the event editor can be used to override what’s set as the PayPal settings.

Viewing 1 reply thread

The support post ‘WooCommerce/usermeta/WP User Integration’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso