minimum number participants group registration

  • Cynthia
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 5 months ago #5770 by Cynthia
Currently the minimum number of registrants for a group registration is 2. Can I change that, and in which file?

Best regards, Cynthia

Please Log in or Create an account to join the conversation.

  • Cynthia
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 5 months ago - 14 years 5 months ago #5787 by Cynthia
It took a while, but found it!

Change this file: com_eventbooking/vieuws/register/tmpl/group.php
line 54: if (parseInt(form.number_registrants.value)< 2) {
change 2 into the desired minimum number of registrants.

You might also want to change the possibility to 'skip this member'.
It's in this file: com_eventbooking/vieuws/register/tmpl/group.php
line 190: if ($this->currentMember > 2) {
change the 2 again.

And don't forget to change the text in Configuration->Messages, in the field Number of members Form Message. You want to let people know the minimum number of registrants that they should to fill in.
Last edit: 14 years 5 months ago by Cynthia.

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #5795 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: minimum number participants group registration
Hi

Thanks for posting your solution here. In the current version, the minimum number of members in group registration is hard coded to 2 by default. In the next version, I will add it as a parameter which you can change while creating/editing event from back-end

Thanks,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc