Posted: July 28, 2020 at 10:50 pm
I am using the Wait List manager addon for the first time and I have a few observations to share:
1) The event must be in the Sold Out status. This stumped me for a long time since I created a Private event that (even though I was able to purchase tickets as an admin user) was never moved to the Sold Out status. This lack of Sold out status on the event (even though the registrations and ticket numbers and wait list numbers were lined up correctly) made it so the Wait list button never showed. No Joy. It was only when I published the event and the status got automatically set to Sold Out that the button appeared. Joy.
2) Testing this feature with heavy customizations to the theme = headache. So, if you are testing this, make sure you do a Theme Live Preview with a generic theme in the Customizer. This de-customizes everything all at once. Joy.
3) Now that it is “alive” amidst my heavily customized theme I am seeing the popup window squished and placed in a weird way. It also gets placed off the viewport on mobile. Is it possible to simply customize CSS to move this window so it shows correctly? That would be Joy.
4) After submit of my name and email the popup goes away but I am dropped into the homepage of the site. No Joy. Can I tell the Addon somehow to go to a specific page? Ideally, the system would just return the customer to the page for the event they were just registering for.
5) Can I customize any of the wording of the initial button, the description, the Submit button, the form field labels, the error/validation messages? I need to use specific words for our customers. That would be Joy.
Thank you very much for developing this. I looked at the code base and it is very advanced! Some really good work there keeping everything tight.
Firstly, thanks for the feedback 🙂
I can reproduce this and have created a ticket to investigate further.
This is a good heads up for other users but unfortunately, there isn’t much we can do to prevent this as the front end output is heavily dependant on the theme in use.
It depends on what is happening, can you link me to an event I can view this on?
The default behaviour is to link back to the page you added the waitlist registration form using the HTTP_REFERER value.
Which PHP version are you running on?
The add-on uses
The form itself is passed through a filter:
You can change a lot through there, or, pretty much every string in Event Espresso is passed through some form of translation function so you could translate them.
Thanks for the notes.
1,2,3, and 5 are good to go (I haven’t tried the filter suggested, but I think I can use the filter to get the changes I need).
But #4 is confusing me. I am on PHP 7.4.4. I don’t see any log messages so the ‘catch’ is not running. But what about AJAX? That code just seems to exit() – which might cause the behavior of redirecting to the homepage of the site.
Let me know if you see anything odd about the logic there.
Here is the code I see handling the redirect:
We don’t process the waitlist submission using Ajax so it’s expected that it would just exit there, the above code looks fine.
You could try writing
Or try using:
In place of:
and see if that works better with your set up.
That worked! Thank you for the support.
I’d love to be able to put some kind of message inline on the event page to let them know the form submission went well. I know they get an email but that can take time to arrive.
Is there any way I can add something to the page post submit?
There’s already a message displayed when a registration is added to the watlist:
Do you not see that on your site?
1) It should stay up longer – it disappears in about 7 seconds
You’ll need to add your own code to change this, ee uses a
The wrappers for EE notices is injects to the top of the content on all pages it needs to be on, then we inject content into those wrappers on the fly. If we embedded them on the page they in the way I think you mean they need to then be hidden anyway.
However, again you can change this if you wish.
??? It’s still in DOM so I don’t follow.
After submitting a waitlist registration, on the page that displays/displayed the notice just open up Chrome Dev Tools (or similar) and search in the elements tab for ‘You have been successfully added to the Wait List’ (or part of that string) and you’ll find the elements there.
Or, the parent element that all of the EE notices are added into is
Thank you for the notes about how to customize. This is very helpful.
Just two more questions…
1) You previously indicated that the form elements are customizable and gave several ways to accomplish this. What about this completion message? Is this success message able to be customized? Is there a separate hook or is it this one also?
2) Will EE have a patch for the HTTP_REFERER update that fixed my redirect issue? I would like to avoid maintaining this modification in the EE core addon.
Whilst I don’t have any issues with letting you know where to find these, you’d likely be quicker searching the codebase (as I know you are already more than capable) as that’s pretty much all I’m doing.
EE uses place holders within its strings so its not always as easy as just searching for a full string but in this case I searched for ‘You have been ‘ in Sublime text:
So yeah, that text is filter and translatable, the filter is ‘quicker’ so
Most likely yes, although maybe not exactly the same one you are using now.