Modify main search bar

Hello,

I would like to have the main search bar like the one on blablacar (attached). I am using ExpertHive.

Right now I have that:

Is this possible? I’ve already added the 3 attributes (leaving from/going to/ date) but I can’t get it to work. Do you have any PHP code? Thank you very much.

Hi,

Yes, you can add a date attribute to a listing and mark it as searchable, please check this doc How to add listing attributes - HivePress Help Center
Also, as another option, you can use the built-in data attribute from the Bookings extension, but there is no such functionality as shown in the first screenshot, but simply a search by available dates How to enable the date availability search - HivePress Help Center

​I hope this is helpful to you.

Hello,

Thank you for your feedback. For the date, I succeeded but for the rest, I don’t understand why a text field can’t be in the search bar (the option isn’t there). Perhaps another possibility via PHP code? Or would it be possible to add a text attribute to the search bar?

Hi,

Please provide more details on the attribute type you are adding, and we will try to help (you can send a screenshot). Also, please test the Geolocation extension; it adds the Location field to the search bar, but note that only one field exists.

Hello,
Thanks for your feedback, but I’d like to have two geolocation attributes or two text fields (keyword) in the search bar. It’s to search for a starting point and then a destination, like on the BlaBlaCar site.

Hi,

Unfortunately, this version does not have this feature, it will require advanced customization.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.