- Posts: 12817
- Thank you received: 1659
All popular questions related to OS Property will be posted here
How to remove Decimal options in dropdown Bathroom
- Mr. Dam
- Topic Author
- Away
- Administrator
Less
More
10 years 1 month ago #52373
by Mr. Dam
How to remove Decimal options in dropdown Bathroom was created 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
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.
- Szabó Zsolt
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
9 years 9 months 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
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.
- Szabó Zsolt
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 1
9 years 9 months 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
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. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2024 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.