How to change the minimum number of members?

  • Leemaj
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #26894 by Leemaj
Hi,

I have a question about Event Booking.
How can I change the minimum number of members for a group registration from the current 2 to 6?

Thanks!

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

More
12 years 4 months ago - 12 years 4 months ago #26908 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to change the minimum number of members?
Hi

You will need to edit code alitle. However, it is easy. Please follow the instructions 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)< 6) { alert("<?php echo JText::_('EB_NUMBER_REGISTRANTS_IN_VALID'); ?>"); form.number_registrants.focus(); return false; }

After that, it should work as expected.

Tuan
Last edit: 12 years 4 months ago by Tuan Pham Ngoc.
The following user(s) said Thank You: Leemaj

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

  • Leemaj
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 3 months ago #27368 by Leemaj
Thank you!

Now when you go to register for a group.
You can only continue if you enter 6 or higher, which is good.
But after when you are entering the member information, after you finish the 2nd member, there is a button that lets you skip the rest. So pretty much, not having to enter the other members and getting charged for those members.



How can I remove this "Skip Member" or make it so it doesn't not charge for the rest of the members that was entered?


Thanks!
Attachments:

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

More
12 years 3 months ago #27417 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to change the minimum number of members?
Hi

Look at the file components/com_eventbooking/views/register/tmpl/group_member.php, you should see the code for the button and can remove it.

Tuan

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

More
6 years 9 months ago #117868 by Bianca
Hello,

where can i change the number of members in later versions (3.2.1)?
Greetings,

Bianca

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

More
6 years 9 months ago #117869 by Bianca
Hello,

where can i change the number of minimum/maximum members in later versions (3.2.1)?
Greetings,

Bianca

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

More
6 years 9 months ago #117871 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to change the minimum number of members?
Hello

We don't allow changing number members by default. If you want to change it, you will need to edit code:

- Open the file administrator/components/com_eventbooking/view/registrant/tmpl/default.php
- Find this line of code:
Code:
<input type="text" name="number_registrants" value="<?php echo $this->item->number_registrants ?>" readonly="readonly" />

- Change it to:
Code:
<input type="text" name="number_registrants" value="<?php echo $this->item->number_registrants ?>" />

Regards,

Tuan

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

More
6 years 9 months ago - 6 years 9 months ago #117874 by Bianca
I does't work. I like to change the minimum number for groups from 2 to 1 (because i will not use two registration buttons, will only use the group button - two registration buttons are to much for older bookers).

And thanks for the quick response. :-)

Bianca
Last edit: 6 years 9 months ago by Bianca.

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

More
6 years 9 months ago #117881 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to change the minimum number of members?
Ah

I mis-understand your question. In this case, you need to edit the event, set Min Number of Registrants For Group Registration setting of that event to 1 and it will work fine

Tuan

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

Moderators: Tuan Pham Ngoc