- Posts: 61
- Thank you received: 0
Please post all pre-sales questions of all products on this forum
Database integration with Event Booking
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
11 years 10 months ago #32313
by Matia
Database integration with Event Booking was created by Matia
I was wondering if it would be possible to pull database from a database table into a dropdown list in a registration form in Event Booking? And if so, what level of difficulty would you rate it?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 10 months ago #32429
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Database integration with Event Booking
Dear Matai
It is not difficult. However, you will need to know Joomla programming in order to do that. Maybe you can get a Joomla developer to help you with the task.
Tuan
It is not difficult. However, you will need to know Joomla programming in order to do that. Maybe you can get a Joomla developer to help you with the task.
Tuan
Please Log in or Create an account to join the conversation.
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 0
11 years 7 months ago #36023
by Matia
Replied by Matia on topic Re: Database integration with Event Booking
Are there any tutorials on how this would be done in Event Booking? I'm not too concerned about the programming part, I'm just not sure where to begin.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 7 months ago #36075
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Database integration with Event Booking
Hi
The registration form is coded in the file components/com_eventbooking/views/register/tmpl/default.php. So open that file, edit code to add the field you want there !
Tuan
The registration form is coded in the file components/com_eventbooking/views/register/tmpl/default.php. So open that file, edit code to add the field you want there !
Tuan
Please Log in or Create an account to join the conversation.
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 0
11 years 7 months ago #36123
by Matia
Replied by Matia on topic Re: Database integration with Event Booking
Ok, but if I have 20 registration forms throughout the site and want different forms to pull different database tables, will that be possible if I am altering the default template file?
Please Log in or Create an account to join the conversation.
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 0
11 years 7 months ago #36126
by Matia
Replied by Matia on topic Re: Database integration with Event Booking
I think I found a way. I know where to add the additional fields in the default.php file and I can probably put each additional field inside of an IF statement for different forms, although this would make the registration forms very non-flexible for my customers. I am looking at the State field as syntax to duplicate for these dropdowns, but I'm unsure how "<?php echo $this->lists ; ?>" is pulling the states. I know there is a table with each state name, but how is that table being called?
Thank you for your time and patience!
Thank you for your time and patience!
Please Log in or Create an account to join the conversation.
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 0
11 years 7 months ago - 11 years 7 months ago #36725
by Matia
Replied by Matia on topic Re: Database integration with Event Booking
Any help? I know this is under pre-sales but I did purchase the extension and would like some support.
Here is where I am at, assuming I want a dropdown of cities that are in a database table called "cities", I added:
<?php
if ($this->config->s_cityname) {
?>
<div class="control-group">
<label class="control-label" for="cityname">
<?php echo JText::_('EB_CITYNAME') ?><?php if ($this->config->r_cityname) echo '<span class="required">*</span>'; ?>
</label>
<div class="controls">
<?php echo $this->lists ; ?>
</div>
</div>
<?php
}
?>
to /views/register/tmpl/default.php. I assume I can put an SQL statement in <div class="controls"> instead of what is currently in there. I'm not sure if that is the right direction to go though, or how that SQL statement would need to look in the component. I think I made the right additions in the Event Booking database tables for the variables like s_cityname, r_cityname and EB_CITYNAME.
Here is where I am at, assuming I want a dropdown of cities that are in a database table called "cities", I added:
<?php
if ($this->config->s_cityname) {
?>
<div class="control-group">
<label class="control-label" for="cityname">
<?php echo JText::_('EB_CITYNAME') ?><?php if ($this->config->r_cityname) echo '<span class="required">*</span>'; ?>
</label>
<div class="controls">
<?php echo $this->lists ; ?>
</div>
</div>
<?php
}
?>
to /views/register/tmpl/default.php. I assume I can put an SQL statement in <div class="controls"> instead of what is currently in there. I'm not sure if that is the right direction to go though, or how that SQL statement would need to look in the component. I think I made the right additions in the Event Booking database tables for the variables like s_cityname, r_cityname and EB_CITYNAME.
Last edit: 11 years 7 months ago by Matia. Reason: More information added
Please Log in or Create an account to join the conversation.
- Matia
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 0
11 years 6 months ago #37186
by Matia
Replied by Matia on topic Re: Database integration with Event Booking
*BUMP*
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc, Giang Dinh Truong, Mr. Dam
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.