Hi Flynax,
Is there anyway if I can restrict the input of location of search by distance to auto fill only 1 country USA?
Hi Flynax,
Is there anyway if I can restrict the input of location of search by distance to auto fill only 1 country USA?
Wei,
I think rudi gave me some code for that.
Its in one of my threads. Dunno where though.
Hello,
See this thread: https://forum.flynax.com/showthread....light=distance
Hi Rudi,
I have been reading again and again all 3 page, especially page 2. But still can't figure out how to implement it. (
On page 2, there is a solution for olx template homepage which I don't use, so the only solution found is:
I'm using Realty Nova template and trying to restrict the search by distance input on the category search form on sidebar, so I'm looking at:Code:Only registered members can view the code.
template/tpl/blocks/side_bar_search.tpl and field_search_box.tpl
Also checking plugins/search_by_distance/field.tpl
I could not find where to implement your code. Here is my country name and country code:
Would you please comment on this?Code:Only registered members can view the code.
You only need to select a default category in Basic Settings > Search by Distance > Listing Fields Mapping > Country field > NONE; Default country > your country
Hi Rudi, yes. I also set that
Screen Shot 2021-07-21 at 4.12.33 PM.png
But for some reasons, when I input location it still show other country results
Screen Shot 2021-07-21 at 4.14.02 PM.png
I've checked and you need to update the plugin
Hi kiowa, I checked your site and tried to input in the search by distance location random place in other country, it still shows other country. Did you remove the code to restrict to Australia only?
Screen Shot 2021-07-21 at 8.52.14 PM.png
Hi Rudi,
I just downloaded the newest 5.0.2 on my local machine and setup as you suggest, it still show suggestion from other country rather than restrict to USA only.
So I went to Flynax realty demo, enable the search by distance plugin, used the same setup
Screen Shot 2021-07-21 at 8.58.12 PM.png
Then try it at https://realty.demoflynax.com/search-by-distance.html
The suggestion still shows other country
Screen Shot 2021-07-21 at 8.58.53 PM.png
It should work, on gerenal demo it works as it should