Support

Home Forums Event Espresso Premium The add to waitlist is not working properly

The add to waitlist is not working properly

Posted: September 16, 2022 at 4:58 am


web@the-collaborative.net

September 16, 2022 at 4:58 am

Hello there.

I’m having some issues with users adding to the waitlist or when a user initially purchases orders.

The problem is: that when a user registers or is registered by admin and the user goes to an event to add it to their waitlist, the user’s order is not added to their order in their user’s profile but the registration is created.

But when the user profile is saved, it displays the order/registrations in their profile and then only they will not be able to add to the waitlist again. So, why is the order not showing when they add to the waitlist initially?

FYI, we’ve customized the add to waitlist button to work allowing or disallowing users when the users have purchased the event or have added to the waitlist.

I look forward to hearing from you.

Thank you.


web@the-collaborative.net

September 16, 2022 at 5:03 am

By order history in user profile, I meant in here https://monosnap.com/direct/DbmNOApqdjEnTmSYwmWTOX5ZvGV1bg.


web@the-collaborative.net

September 20, 2022 at 2:44 am

Hi EventEspresso Support team,

I’m following up if there’s any response from you.
Please let me know if you have any questions.

I look forward to hearing from you.

Thank you.


Tony

  • Support Staff

September 20, 2022 at 5:36 am

Hi there,

My apologies for the delayed reply.

So I’m not really sure I follow this, the member history section you’ve posted does not appear to be something from Event Espresso?

Unless it is a heavily modified version of the WP Users [ESPRESSO_MY_EVENTS] output?

You mentioned updating the profile, so saving the profile then shows the waitlist registration in the Member History?

Can you post up each step to reproduce this, please?

With a screenshot of each of those steps as well if possible?


web@the-collaborative.net

September 26, 2022 at 5:42 am

Hi Tony.

Thank you for your response. Please find a video link where I’ve shown the issue. https://www.loom.com/share/b5d9b56498724338a8b9c66eb5dca510

Below are the steps that I want to point out.

  • First I created a test user, assigned it a role.
  • After a user is created, I assigned it a Member role.
  • After a Member role is assigned and saved, I compared the new user and the older user profile where at the bottom of an old user we can find All Registrations for this user section. Which is not initially in the new user.
  • After that, I logged in with a test user, submitted to an event to add to waitlist.
  • Looking into the user profile again, the All Registrations for this user section is still not there.
  • When I go to the backend and update that user, the section show and the user is updated.

Not sure, what is missing that the user subscription is not showing in the first place. And it is showing only after the user profile is updated.

Please let me know if you have any other questions.

Thank you.


Tony

  • Support Staff

September 28, 2022 at 9:17 am

First, thank you for the video and the rundown, it helps to know exactly what is happening.

I can reproduce this and the reason it works after the profile update is the WP USer integration add-on hooks into the profile update to make sure the WP User and EE_Contact are in sync…. when they are in sync the registrations display.

So, for some reason on the initial registration, the WP user integration add-on is not syncing the WP User and EE_Contact on that request.

I’m checking into this currently and will let you know what I find.


Tony

  • Support Staff

September 28, 2022 at 12:28 pm

Ok, this took a little digging and now its found, it’s obvious why πŸ™‚

The WP User integration add-on hooks into the Single Page CheckOut process (SPCO for short) to sync up the WP User to the EE_Contact.

Waitlist registrations are generated completely outside of SPCO in their own method, so the call to sync up the contact doesn’t happen for waitlist registrations.

This won’t matter if a ‘regular’ registration is done before/after the waitlist registration or the profile is updated because the sync will then happen and all registrations linked to the contact show up for the WP User account. So it’s an issue with a new WP User account that has only registered onto a waitlist registration(s).

You an fix this using a snippet like this:

https://gist.github.com/Pebblo/282b1cf363b06bd5a09d4ee51e2bd016

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

I’ll create a ticket for the WP User integration add-on to hook into waitlist registrations and do this automatically in a future version πŸ™‚


web@the-collaborative.net

September 29, 2022 at 5:38 am

Hi Tony.

Thank you for your response.

I added the code and it worked like a charm. πŸ™‚

Thanks a lot.

Regards.


Tony

  • Support Staff

September 29, 2022 at 12:52 pm

You’re most welcome πŸ™‚

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso