- Posts: 11
- Thank you received: 1
Multiple locations for single event
- Eric Engert
- Topic Author
- Offline
- New Member
- 
              
        Less
        More
        
            
    
        
            
        
                12 years 1 month ago                #35882
        by Eric Engert
    
    
            
            
            
            
            
                                
    
                                                
    
        Multiple locations for single event was created by Eric Engert            
    
        Is there any way to assign multiple locations to a single event?  If not, can this feature be added?    
    Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
- 
              
            
        
                12 years 1 month ago                #35915
        by Tuan Pham Ngoc
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Tuan Pham Ngoc on topic Re: Multiple locations for single event            
    
        Hi Eric
Unfortunately, it is not possible. By design, each event can only have one location. If you want to assign multiple locations for one event, you will need to do some customization (need to know programming in order to do that).
Regards,
Tuan
    Unfortunately, it is not possible. By design, each event can only have one location. If you want to assign multiple locations for one event, you will need to do some customization (need to know programming in order to do that).
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Eric Engert
- Topic Author
- Offline
- New Member
- 
              
        Less
        More
        
            
    
        - Posts: 11
- Thank you received: 1
            
        
                12 years 1 month ago                #35919
        by Eric Engert
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Eric Engert on topic Re: Multiple locations for single event            
    
        Tuan,
I figured as much. I can handle php coding. Can you point me in the right direction as far as the file(s) and/or table(s) where the changes would need to be made?
Thanks.
    I figured as much. I can handle php coding. Can you point me in the right direction as far as the file(s) and/or table(s) where the changes would need to be made?
Thanks.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
- 
              
            
        
                12 years 1 month ago                #35927
        by Tuan Pham Ngoc
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Tuan Pham Ngoc on topic Re: Multiple locations for single event            
    
        Hi Eric
It is not easy :
1. You will need to create an extra database table so that you can store the locations which users selected for one event.
2. You will need to edit the file administrator/components/com_eventbooking/view/event/html.php, change the location dropdown to a multi-select dropdown (maybe see how I process with categories in the same file - an event can have multiple categories)
3. Edit the file administrator/components/com_eventbooking/model.php to store the data for selected locations (same as how I process saving categories).
After completing this task, please let me know and I will guide you for the next step
Tuan
    It is not easy :
1. You will need to create an extra database table so that you can store the locations which users selected for one event.
2. You will need to edit the file administrator/components/com_eventbooking/view/event/html.php, change the location dropdown to a multi-select dropdown (maybe see how I process with categories in the same file - an event can have multiple categories)
3. Edit the file administrator/components/com_eventbooking/model.php to store the data for selected locations (same as how I process saving categories).
After completing this task, please let me know and I will guide you for the next step
Tuan
Please Log in or Create an account to join the conversation.
        Moderators: Tuan Pham Ngoc    
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.
