Multiple locations for single event

  • Eric Engert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months 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.

More
11 years 7 months 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

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

  • Eric Engert
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months 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.

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

More
11 years 7 months 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

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

Moderators: Tuan Pham Ngoc