Advertisement:

Author Topic: [SOLVED] Homepage search by City not displaying results unless I reapply search  (Read 580 times)

ben_dchost1

  • Jr. Member
  • **
  • Posts: 92
Hello,

I have made some slight modifications to the homepage so the user types in i.e. a city, and then the input search uses the sCity instead of sPattern search.

This seems to work correctly, since when it goes onto the search page on the following screen, the city (or in this case, the postcode) is correctly inserted. However, it then displays no results, and if I manually click search again it then finds the correct listings.

So the question is how do I make the search on the homepage, instantly display the results for the search page instead of having to re-apply the search? It obviously works fine with the sPattern (standard search) but I want it to be specific to a postcode, does anyone know how to do this? Thanks

My input in home page: http://i.imgur.com/8shj4El.png
The results following the homepage (doing something since postcode now has the value): http://i.imgur.com/UCSODRY.png
When I manually click search it THEN displays the results... http://i.imgur.com/VsVkjDu.png

(Sorry for no attachments screenshots were too big)
« Last Edit: August 28, 2014, 11:52:08 am by ben_dchost1 »

ben_dchost1

  • Jr. Member
  • **
  • Posts: 92
Managed to figure it out. I am using a radius plugin which meant when the user entered a search from home page the default radius value was 0, therefore it was not finding anything.

Specifying a default radius value solved the issue :)