How to search number of guests with equal or less matches

Hello guys,
We have a requirement and I need a workaround. By default, when end user searches a listing the result is shown with exact number of guests.

I understand this default behavior but I need handle this making the search against the “MAXIMUM GUESTS PER BOOKING” with a clusule like equal or less or something like that.

Is there a way to handle this or a Code Snippet to make this requirement ok?

Thank you

Please make sure that you follow these steps:

  • Enable Allow multiple places per booking setting in HivePress/Settings/Bookings
  • Add Places option in Default Fields setting in HivePress/Settings/Listings
  • Set Maximum places per booking for the listing

Also please make sure that you do not use the custom attribute to set the maximum places per booking

Great!!! It worked fine! Thanks

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