Registration form in the event details

  • Lorenzo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 week ago - 7 years 1 week ago #115107 by Lorenzo
Hello everybody,
I would like to add the registration form below the event details, so without having users to click on "Registration" button.
I do not use group registration.

I located the event detail file in "components/com_eventbooking/view/event/tmpl/default.php"
and I should add the code form after line 282
Code:
<div class="eb-taskbar eb-register-buttons-bottom clearfix"> <ul> <?php echo $registerButtons; ?> </ul> </div>

I think that the code I should put is from "components/com_eventbooking/view/register/tmpl/default.php" but I cannot understand what part of code I should copy from there. Adding the whole code breaks the other page and the form doesn't even appear.

I hope someone could advise me which lines I should copy in the event detail file to let the form appear and work.
Thanks in advance
Lorenzo
Last edit: 7 years 1 week ago by Lorenzo.

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

More
7 years 1 week ago #115113 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registration form in the event details
Hi Lorenzo

It's not just coping the code from components/com_eventbooking/view/register/tmpl/default.php . There is much more logic involved (components/com_eventbooking/view/register/html.php)

So instead of modify code like that, maybe you can use this plugin eventbookingdoc.joomservices.com/miscell...nt-registration-form

Basically, just edit the event, enter the syntax {ebregister EVENT_ID} into description of that event (replace EVENT_ID with id of that actual event) and it should work as expected

Tuan
The following user(s) said Thank You: Lorenzo

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

  • Lorenzo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 week ago #115181 by Lorenzo
Replied by Lorenzo on topic Registration form in the event details
Tested and it worked like a charm. Just what I needed.
Thank You Tuan :)

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

More
7 years 1 week ago #115182 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Registration form in the event details
Great. Happy to hear that :)

Tuan

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

Moderators: Tuan Pham Ngoc