Support

Home Forums Event Espresso Premium Reset Max Group Registrants to unlimited

Reset Max Group Registrants to unlimited

Posted: November 26, 2013 at 9:16 pm


Mark Maxwell

November 26, 2013 at 9:16 pm

The Max Group Registrants keeps defaulting to a previous setting. I would like to reset it to unlimited. Please advise.

WP 3.71
EE 3.1.35.2.P
EE-Calendar 2.0.6.3
New install
http://apsdex.com/event-registration/?ee=6


Jonathan Wilson

November 26, 2013 at 10:50 pm

Hi Mark,

I haven’t heard of this happening before. Have there already been registrations for the event? If not, you could duplicate the event, then change it to unlimited in the new one. If there have already been registrations, you could use the attendee mover add-on that is included in the pre-release channel (you’ll need to opt-in from your account) to move attendees to the new event, if the previous suggestion works. 🙂

Let us know.


Mark Maxwell

November 26, 2013 at 11:02 pm

Hi Jonathan,
Thanks for your reply. We don’t have any registrants yet. I tried duplicating the event. It defaulted back to 5 even after creating a new event! Go figure? I can set it to another number, but if I delete the value and update the page it reverts back to 5 repeatedly. Is there any way to reset the page defaults?
Thanks for your help.


Dean

November 27, 2013 at 2:59 am

Hi Mark,

Unless a value has been set in the Max Group Registrants option it will indeed default to 5.

I cannot replicate that a duplicate event would reset this value.

If you need an unlimited number of max group registrants, please set the figure very high e.g. 99999.

Please note that currently the max number that can be registered is 127, we are looking to increase that figure in the next release.


Mark Maxwell

November 28, 2013 at 11:08 pm

Actually I would prefer to remove the limitation all together. I would like to have the option to add additional attendees without any mention of a maximum.


Dean

November 29, 2013 at 3:03 am

Hi Mark,

This isn’t possible in the admin area, a figure always needs to be set.

From a front end point of view, the only mention of the limit I can see is when using Multiple Event Registration add on and it says: You can register a maximum of XXX attendees for this event.

A little bit of CSS can remove this. Just add the following to your themes style.css file or to a plugin such as My Custom CSS:

.reg-allowed-limit { display:none; }


Mark Maxwell

November 29, 2013 at 12:36 pm

Hi Dean,
I was hoping your suggestion above would do it but the limit is still appearing. Yes, I am using the Multiple Event Registration add on. This text appears at the bottom of the registration page form:

“Add More Attendees? (click to toggle, limit 4)”

I would prefer that it simply reads:
“Add More Attendees?”

Thank you very much for your assistance.

Mark


Dean

December 2, 2013 at 12:53 am

Hi Mark,

OK, the best way to resolve it is via translations.

You could either do a translation via the language files (see here https://eventespresso.com/wiki/how-to-change-wording-with-poedit/) or by adding the following function into your themes functions.php file:

function youruniqueprefix_filter_gettext( $translated, $original, $domain ) {

    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Add More Attendees? (click to toggle, limit %s)' => 'Add More Attendees?'
        // Add some more strings here
    );

    // See if the current string is in the $strings array
    // If so, replace it's 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', 'youruniqueprefix_filter_gettext', 10, 3 );


Mark Maxwell

December 7, 2013 at 1:48 pm

Dean,
Thank you very much for guidance. I was able to successfully modify the php file as suggested with the desired results. I really appreciate your help.
Mark

The support post ‘Reset Max Group Registrants to unlimited’ 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