Minimum Group Size

  • Clare Foley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17434 by Clare Foley
Minimum Group Size was created by Clare Foley
Hi,

My client needs an event to have a MINIMUM group size - eg there must be at least 10 in the group to book.

I can see how to set the MAXIMUM - but this does not help me!

Is there a solution?

Thank you!

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

More
12 years 9 months ago #17466 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Minimum Group Size
Hi

In this case, you will have to edit code. Please follow the steps below :

1. Open the file components/com_eventbooking/views/register/tmpl/group.php

2. 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 false; }

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

After that, it should work as expected .

Tuan

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

  • Clare Foley
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17489 by Clare Foley
Replied by Clare Foley on topic Re: Minimum Group Size
Thank you Tuan - that looks ok.

Is it possible to make the minimum group size conditional on an event category?

For example for some events there is no minimum but for some others a group of 10 is the minimum?

So could I take the value for an event category and use an IF statement?

This will only need to be setup for my client once as he knows how the groups should be booked across all events.

Many thanks!
Clare.
:unsure:

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

More
12 years 9 months ago #17491 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Minimum Group Size
Hi Clare

This will require some modification to the extension and you will need to pay us for doing the work. It will take us 2 hours of working and you will need to pay us 30$ .

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc