OS Property support center

http://osprealestate.joomservices.com/index.php/ma

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #52439 by mazen
Hello,
At the page : osprealestate.joomservices.com/index.php/map-search
in the search field there is initial value (New York, USA) ..
How can I change it ? to other country ?
in the download file, its empty not the same as the demo ..

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #52457 by Mr. Dam
Hi Mazen,
In the demo, we setup all properties in New York, so we want customers to be able to see the result after searching. (Because some customers told us they don't know how to use Locator searching)
In default, the Locator search function won't show any properties (like the demo).
You must enter location and select Radius (km or miles) and then, the system will show the properties (if exists) in the searched location
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #52586 by mazen
Hello,
Thanks for explaining,.
Would you please let me how to make it the same as you did in the demo?

Thanks in advanced
Mazen

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #52595 by Mr. Dam
Hi Mazen,
We hard code the file locator.php and locator.html.php in "classes" directory. If you want, i will let you know how to solve it?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago - 10 years 6 months ago #52597 by mazen
Dear Dang,
Yes please, I would like to know..

Thank you very much...
Last edit: 10 years 6 months ago by mazen.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #52615 by Mr. Dam
Ok, please open 2 files
components > com_osproperty > classes > locator.php and locator.html.php
in file location.php
find
$location = OSPHelper::getStringRequest('location','','');
and replace by
$location = OSPHelper::getStringRequest('location','New York, USA','');
or other location you want

find
$radius_search = JRequest::getInt('radius_search',20);
you can change 20 to another radius value if you want

in file location.html.php
find
if(JRequest::getInt('doSearch',0) == 0)
change to
if(JRequest::getInt('doSearch',1) == 0)

Good luck
Dam
The following user(s) said Thank You: mazen

Please Log in or Create an account to join the conversation.

  • mazen
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 6 months ago #52617 by mazen
Thank you very much

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan