Support

Home Forums Event Espresso Premium Waitlist: Why remove it from Default registration option

Waitlist: Why remove it from Default registration option

Posted: September 14, 2016 at 4:55 pm

Viewing 12 reply threads


Omar Paloma

September 14, 2016 at 4:55 pm

I noticed that EE4 4.9.12 removes waitlist from the default registration options. I was really happy that it appeared and I wonder why remove it.

I run an event were we don’t want to approved anyone until 2 conditions have been met.

1) Full payment is received and
2) All registration documents are received.

Using waitlist, I thought, might be a good solution.

If you removing this (I know it hasn’t always been there) can you tell me the best way to accomplish the above? Last year EE4 issued tickets to groups before they completed our process and it created some challenges.


Josh

  • Support Staff

September 14, 2016 at 5:19 pm

Hi there,

The Waitlist status is not intended to be used as a default registration option. It should have never been in those options in the first place, as there was an oversight. Registrations are automatically moved to a Waitlist status if the event sells out before the registration is approved. That’s the intent of the wait list status.

You can use the Not Approved default registration status to accomplish what you’re looking to do.


Omar Paloma

September 15, 2016 at 1:15 am

Is there a possibility of a custom status, e.g. “Processing” or “Pending Completion”?


Josh

  • Support Staff

September 15, 2016 at 10:00 am

That may be possible with custom development. I’m not sure why a custom status would be necessary to achieve what you’re looking to do.

To clarify what I mean, you can set the Default Registration Status to be Not Approved, then after all registration documents are received, you set the registration status to Pending Payment. Then when payment is received, the status will be switched to Approved.


Omar Paloma

September 15, 2016 at 10:03 am

Thanks, Josh. Only one reason, ‘Not Approved’ connotes a final status and can create unnecessary concern as we also have conditions under which a registration is not approved as well.


Omar Paloma

September 15, 2016 at 10:04 am

Perhaps ‘Pending Payment’ can be ‘translated to ‘Pending’?


Tony

  • Support Staff

September 16, 2016 at 6:30 am

Yes it can, you can use the function shown here:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function

Use: 'Pending Payment' => 'Pending', within the $strings array and it should change all instances of Pending Payment to Pending.

However it will not alter the message templates as those are already stroed within the database, you will need to do that manually.


Omar Paloma

September 16, 2016 at 7:05 am

That’s awesome, Tony. I will do this!


Omar Paloma

September 19, 2016 at 5:02 am

Ok, I’ve tried this via a custom plug-in and activated the plug-in.

Nothing.

Here is my code. Maybe I have to do something particular?


function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Register' => 'Sign up',
        'Confirm and go to payment page' => 'Complete registration',
        'No events available...' => 'No upcoming Events at this time...',
        'click here to add a new state/province' => 'click here to enter address outside US/Canada',
        'Pending Payment' => 'Pending Completion',
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );


Josh

  • Support Staff

September 19, 2016 at 9:33 am

May I ask where exactly the text appears that you’re looking to translate? For example, is it in the admin, the front-end of the site, or in one of the messages?


Omar Paloma

September 19, 2016 at 7:01 pm

Hey Josh,

I am looking to change the text in all three areas.

Thanks


Tony

  • Support Staff

September 21, 2016 at 4:10 am

Apologies, you will also need to add:

'pending payment' => 'pending completion',

to your strings. (the lower case is intentional)

That should change the majority of the strings however if there are specific areas which don’t change you will need to let us know the specific area you need to target so we can help.


Omar Paloma

September 24, 2016 at 10:17 am

Thank you, Tony. That seems to have done the job. You can mark this as resolved.

Viewing 12 reply threads

The support post ‘Waitlist: Why remove it from Default registration option’ 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