Event Booking Search - Multiple Categories

More
6 years 11 months ago #115913 by Mike
Hi Tuan,

Is it possible to search for events that are in multiple categories?

For example, we want to limit the results to events that are both in category A and category B (category B has been specified in the addtional category field in the event page).

I can modify the existing search module but need to know the url parameters - it looks like the category_id parameter is only expecting one value.

Thanks,

Mike

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

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
6 years 11 months ago #115922 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event Booking Search - Multiple Categories
Hi Mike

It's unfortunately, and I am afraid of It is hard to make this modification. If you want to modify it to be able to select multiple categories like that, there will be code modification needed in many places:

1. The search module (to allow selecting multiple categories)

2. The controller components/com_eventbooking/controller/controller.php, method search to pass selected categories to search URL

3. The buildQueryWhere method components/com_eventbooking/model/list.php to filter results base on selected categories

You will need good programming skill to implement this modification

Tuan

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

Moderators: Tuan Pham Ngoc