×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Search on zip/city

Search on zip/city 9 years 3 weeks ago #32661

  • DLM
  • DLM's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi again,

When you do a search on a city, how can you make sure you search on the city or on the zipcode. Now he does an entire search but it has results I don't want to have.

For example you search 'new york' you get results as "new york-street, ... " but not ONLY new york.

Thanks again,
Kind regards,
DLM

Search on zip/city 9 years 3 weeks ago #32669

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You can't. You need to modify the source code to only search in the city name. We actually have a plugin event onAfterBuildQuery - it would give you the query as parameter and you can modify it - remove the search in description, street etc. But you would need to write php and sql for this. The benefit obviously is that when you update hotspots, your changes in the plugin will stay untouched.

Regards,
Daniel

Search on zip/city 8 years 5 months ago #34325

  • Dave W
  • Dave W's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Have a client that is requesting the ability to do a Zip Code lookup.
Checking if anything has changed or this can be added as a feature request.

Thank you.
  • Page:
  • 1
Time to create page: 0.106 seconds