OS Property support center

Make Default Country with Multiple Selected

  • cmtrig
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #31991 by cmtrig
Hi, my client recently activated Canada on her site, it works great, but she wants the Default Country in the Search to be United States. Where in the code on classes/default.php can I place a default value of "194"? (the id of USA in my DB.)

$lists = HelperOspropertyCommon::makeCountryList('','country_id','onchange="change_country_state(this.value)"',JText::_('OS_SELECT_COUNTRY'),'style="width:150px;"');
Site: SeniorHousingListings.com

Charlie Trig, Trig Web Design
www.trigwebdesign.com

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

More
10 years 10 months ago #32005 by Mr. Dam
Hi,
You can do it by select the default country in : Configuration > Tab General. When you select Canada is default country. It will be used for your Property system and you don't need to make any change on source code.
Regards,
Dam

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

  • cmtrig
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #32007 by cmtrig
No Dam, I want to have both USA and Canada, with USA being the default selection in searches.

Charlie Trig, Trig Web Design
www.trigwebdesign.com

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

  • cmtrig
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
10 years 10 months ago #32086 by cmtrig
Any word on this one? I just want to have multiple countries, but still be able to have USA come up as the default when searching.

Charlie Trig, Trig Web Design
www.trigwebdesign.com

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

More
10 years 10 months ago #32110 by Mr. Dam
Hi,
Currently, OS Property doesn't have that option. When you have 2 default countries, those countries will be shown at the dropdown select list, and customers must select country for searching.
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan