OS Property support center
Make Default Country with Multiple Selected
- cmtrig
-
Topic Author
- Offline
- Senior Member
-
Less
More
11 years 10 months ago #31991
by cmtrig
Charlie Trig, Trig Web Design
www.trigwebdesign.com
Make Default Country with Multiple Selected was created 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
$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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
11 years 10 months ago #32005
by Mr. Dam
Replied by Mr. Dam on topic Re: Make Default Country with Multiple Selected
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
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
-
11 years 10 months ago #32007
by cmtrig
Charlie Trig, Trig Web Design
www.trigwebdesign.com
Replied by cmtrig on topic Re: Make Default Country with Multiple Selected
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
-
11 years 10 months ago #32086
by cmtrig
Charlie Trig, Trig Web Design
www.trigwebdesign.com
Replied by cmtrig on topic Re: Make Default Country with Multiple Selected
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.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13023
- Thank you received: 1688
11 years 10 months ago #32110
by Mr. Dam
Replied by Mr. Dam on topic Re: Make Default Country with Multiple Selected
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
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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.