set minimum number for group registration

  • erinchantz@yahoo.com
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 2 months ago #14070 by erinchantz@yahoo.com
set minimum number for group registration was created by erinchantz@yahoo.com
I am hosting a golf outing and I want to have foursomes sign up, but i want to set it up so four people MUST register in the group. Is there a way to do this?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
13 years 2 months ago #14086 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: set minimum number for group registration
Hi

In this case, you will need to edit the code yourself. Open the file components/com_eventbooking/views/register/tmpl/group.php, find the code below :
Code:
if (parseInt(form.number_registrants.value)< 2) { alert("<?php echo JText::_('EB_NUMBER_REGISTRANTS_IN_VALID'); ?>"); form.number_registrants.focus(); return ; }

Change it to :
Code:
if (parseInt(form.number_registrants.value)< 4) { alert("<?php echo JText::_('EB_NUMBER_REGISTRANTS_IN_VALID'); ?>"); form.number_registrants.focus(); return ; }

After that, it should work as expected !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc