Search Events Module (mod eb_search) with Category id - No results

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 1 month ago - 1 year 1 month ago #157372 by David Unwin
In our organisation we have events that are bookable and non bookable. All the events both bookable and non-bookable are in EB. For the non-bookable we disable registration.
We have a page of upcoming (boobable)  events for our Season's events. As we have a lot of events during the season we want to allow people search by date
To limit the search we have a category called Bookable Events and then under that children categories of bookable events (See screen shot). Non bookable events are not under the Bookable Events category.
In the search module we specify id of the Bookable Category.
We put the search module on the same page as the list of upcoming events (see screen shot) so that people can search for bookable events based on Date
But when we run the search it produces no results. So it looks like the search only looks in the Bookable Category and not its child categories
If you don't put a category id in the search displays results from every category (for us this includes non-bookable events) which we don't want to display.
Also you can't enter multiple category id's just to search on categories your want to search.
Is there a way around this?
Attachments:
Last edit: 1 year 1 month ago by David Unwin. Reason: extra info

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

More
1 year 1 month ago #157375 by Tuan Pham Ngoc
Hello David

The only solution is go to Events Booking -> Configuration, look at Themes tab, set Show Events From All Children Categories config option to Yes

However, please note that it will also applied to category page, upcoming events page... So you should check and make sure the change does not affect other pages on your site

Tuan
The following user(s) said Thank You: David Unwin

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

  • David Unwin
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 year 4 weeks ago #157387 by David Unwin
Hi Tuan,
Thanks for the information and "Show Events From All Children Categories config option to Yes"
As you warned me it does affect other EB menus. Also when setting the id of the Parent Category, this takes the search by Category option from the Search Bar even though you have set Category to be displayed in the search bar. so we can't search by Child Categories of the parent category. I can see the logic as why this was done. I will look at other ways of solving this problem.

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

More
1 year 4 weeks ago #157388 by Tuan Pham Ngoc
OK David. Hope you can come up with a solution

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc