Support

Home Forums Wait List Manager Add-on Auto-enable waitlists for all active events? Also, add waitlist to cart for MER

Auto-enable waitlists for all active events? Also, add waitlist to cart for MER

Posted: October 23, 2018 at 1:59 am


lhammond

October 23, 2018 at 1:59 am

We have just upgraded from EE3 to EE4, and I’m trying to replicate the essential functionality we had before using overflow events. I have several questions about the add-on:
1) Is there a way to enable the waitlist settings for all active events, without manually editing each one? We have more than 100 events already open for registration, and I need to test the ability to add people to the waitlist for them.
2) Is it possible to have the waitlist registration added to the cart from the events table view template? We had a similar template in EE3 that shows an “add to cart” button or a “waitlist” button, as appropriate.
3) If we want to pre-fill the number of waitlist attendees dropdown to be a minimum of 1, but allow a family to reserve more than 1 space, is there a way to do that without editing the code?
4) If we find we do need to customize the functionality of the add-on with developer support, can we override functions in our own custom plugin? Or would it be better to join the dev team and submit suggested edits to the actual add-on code?
Thanks!


Tony

  • Support Staff

October 23, 2018 at 5:45 am

Hi there,

1) Is there a way to enable the waitlist settings for all active events, without manually editing each one? We have more than 100 events already open for registration, and I need to test the ability to add people to the waitlist for them.

Not without some additional code to loop over each event and update the settings for each on individually, the waitlist settings are stored within EE’s extra_meta table and there are 4 settings you’ll need to set per event to prevent errors.

2) Is it possible to have the waitlist registration added to the cart from the events table view template? We had a similar template in EE3 that shows an “add to cart” button or a “waitlist” button, as appropriate.

EE4’s waitlist feature works differently to EE3, there is no event added to the cart for waitlists (it’s not an overflow event, its registrations on the same event with a status used waitlist regs).

So you can’t add a ‘waitlist’ event to the cart and currently to register onto a waitlist you need to see the ticket selector for the event, by default that’s not output on the table view template but it is possible to include it, see:

https://gist.github.com/Pebblo/ce733c6c53a9dc66e90c0a28f74a06e4

However, I’m not sure if that will work for your event set up?

3) If we want to pre-fill the number of waitlist attendees dropdown to be a minimum of 1, but allow a family to reserve more than 1 space, is there a way to do that without editing the code?

If I understand what you want to do, that’s already the default?

This is how the waitlist will show by default (almost) – http://take.ms/zCLIE

Phone number is a custom field added by a snippet HERE which shows a method you can use to add/edit the fields shown on the waitlist. We have a LOT of hooks to usually allow you to do whatever you need to, which leads to:

4) If we find we do need to customize the functionality of the add-on with developer support, can we override functions in our own custom plugin? Or would it be better to join the dev team and submit suggested edits to the actual add-on code?

As mentioned EE is littered with hooks, search for FHEE (filter hook ee) or AHEE (action hook ee) for the various hooks through EE core or its add-ons. You can usually find a hook that will allow you to change whatever you need to change but if not we welcome pull requests although obviously, it’ll depend on the changes made if they are accepted (if there’s a hook you can already use for the same functionality we’ll likely recommend you use that rather than changing the plugin).


lhammond

October 24, 2018 at 7:46 pm

Not without some additional code to loop over each event and update the settings for each on individually, the waitlist settings are stored within EE’s extra_meta table and there are 4 settings you’ll need to set per event to prevent errors.

Okay, I can write a little function to do it. What are the 4 settings? I assume I need to save the fields I can see in the event editing page, that is:
– wait list spaces
– auto-promote registrants
– manually controlled spaces

What is the 4th?

Also, I’d like the waitlist registrations to have all the same info as a regular registration, so that when someone is promoted from the waitlist, all of their information is already there. Would I have to write a custom function like the one that adds Phone Number to select all the same questions used for the event when it is in Open mode?


Josh

  • Support Staff

October 25, 2018 at 7:35 am

Hi,

Tony mentioned they are in the extra_meta table, which is actually
_exp_extra_meta. If you look in there you’ll find 4 rows that get added for an event. The first three map to the options in the editor, and the 4th is the count of wait list registrations. Their keys are:
ee_wait_list_spaces (integer)
ee_wait_list_auto_promote (boolean, 1 for Yes and blank for No)
ee_wait_list_manual_control_spaces (integer)
ee_wait_list_reg_count (integer, start with 0)

Would I have to write a custom function like the one that adds Phone Number to select all the same questions used for the event when it is in Open mode?

You would because the wait list form was only intended to capture Name, Email, and number of wait list tickets.


lhammond

October 25, 2018 at 9:42 am

You would because the wait list form was only intended to capture Name, Email, and number of wait list tickets.

So it’s not just an attendee record with a different status flag? Where are the waitlist attendees stored?


Josh

  • Support Staff

October 25, 2018 at 9:56 am

It is another attendee record with a different status flag. All attendee registrations all stored in _esp_registration, _esp_attendee_meta, and in _posts. The main difference is the waitlist registrations do not have the extra data stored in _esp_answer.

The support post ‘Auto-enable waitlists for all active events? Also, add waitlist to cart for MER’ 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