individual registration only

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45134 by Eric Lamy
individual registration only was created by Eric Lamy
Hello,

I didn't find where I can set EB to have only individual registration only on event soumission form on frontend, can you tell me where I can set that please ?
Thx for your answers

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

More
9 years 11 months ago #45153 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic individual registration only
Look at the file components/com_eventbooking/views/event/view.html.php, find the code below:
Code:
$options[] = JHtml::_('select.option', 0, JText::_('EB_INDIVIDUAL_GROUP')); $options[] = JHtml::_('select.option', 1, JText::_('EB_INDIVIDUAL_ONLY')); $options[] = JHtml::_('select.option', 2, JText::_('EB_GROUP_ONLY')); $options[] = JHtml::_('select.option', 3, JText::_('EB_DISABLE_REGISTRATION'));

2. Change it to:
Code:
$options[] = JHtml::_('select.option', 1, JText::_('EB_INDIVIDUAL_ONLY'));

After that, it should work as expected !

Tuan

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45166 by Eric Lamy
Replied by Eric Lamy on topic individual registration only
Thx for your answer and with this solution if I update Eb I will be obliged to change these lines again or not ?

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

More
9 years 11 months ago #45167 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic individual registration only
Yes. You will have to change it again !

Tuan

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45168 by Eric Lamy
Replied by Eric Lamy on topic individual registration only
ok it works fine and what lines should I have to modified for the line "Max Number of Registrants For Group Registration" and for the tab "group registration Rates" ?

Thx for answers

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45169 by Eric Lamy
Replied by Eric Lamy on topic individual registration only

Tuan Pham Ngoc wrote: Yes. You will have to change it again !

Tuan


It's not possible to make an overide ?

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

More
9 years 11 months ago #45218 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic individual registration only
We can override layout, it is not possible to override the HTML view class. Joomla hasn't had a way to allow it yet !

Tuan

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45222 by Eric Lamy
Replied by Eric Lamy on topic individual registration only

Eric Lamy wrote: ok it works fine and what lines should I have to modified for the line "Max Number of Registrants For Group Registration" and for the tab "group registration Rates" ?


Can you tell me which lines I have to delete to hide the field and the tab ?
Thx for answer

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

More
9 years 11 months ago #45223 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic individual registration only
components/com_eventbooking/views/event/tmpl/form.php

Regards,

Tuan

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

  • Eric Lamy
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 11 months ago #45230 by Eric Lamy
Replied by Eric Lamy on topic individual registration only
Hmm I try but it doesn't work? Let see the form.php modified in the attached file
Attachments:

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

Moderators: Tuan Pham Ngoc