All popular questions related to OS Property will be posted here

How to remove Decimal options in dropdown Bathroom

  • Mr. Dam
  • Topic Author
  • Offline
  • Administrator
  • Administrator
More
9 years 4 months ago #52373 by Mr. Dam
Dear everyone,
Quite a lot of customers asked us that they want to have decimal options in Bathroom fields (when add/edit properties), so we decided to add the decimal values for dropdown select list Bathroom.
The options of Bathroom field are: 1, 1.25, 1.5,1.75,2..etc
But some different customers complained us that they don't want to have decimal options in Bathroom dropdown select list. Obviously, it's really difficult to meet all the conflicting demands. So in case you don't want to have deciamal value options in Bathroom field, you can modify source code directly. Please follow these steps
1. Open file:
root > components > com_osproperty > helpers > helper.php
2. find
$bathArr[] = JHTML::_('select.option',$i.'.25',$i.'.25');
$bathArr[] = JHTML::_('select.option',$i.'.50',$i.'.50');
$bathArr[] = JHTML::_('select.option',$i.'.75',$i.'.75');

and remove

Good luck
Dam
The following user(s) said Thank You: Szabó Zsolt

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

More
9 years 2 weeks ago #59254 by Szabó Zsolt
Replied by Szabó Zsolt on topic How to remove Decimal options in dropdown Bathroom
Hi,
I modified succesfully bath_rooms to 25.
Can you tell me the way how can I modify the input field at frontend advanced search also?
Thanks,
Zsolt

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

More
9 years 2 weeks ago #59256 by Szabó Zsolt
Replied by Szabó Zsolt on topic How to remove Decimal options in dropdown Bathroom
I found at /components/com_osproperty/classes/listing.php
and modified from 5 to 25
Code:
// number bath room $bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY')); for($i=1;$i<=25;$i++){ $bathArr[] = JHTML::_('select.option',$i,$i.'+'); }
The following user(s) said Thank You: emrah

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

Moderators: Mr. DamNguyen Phu Quan