- Posts: 151
- Thank you received: 0
OS Property support center
Add number of rooms
- julian
- Topic Author
- Offline
- Premium Member
-
Less
More
2 weeks 6 days ago #171199
by julian
Add number of rooms was created by julian
Hi.. where can i add more room and bathromms numbers to the dropdown list?
Why is so difficult to add any change?
Why is so difficult to add any change?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 12967
- Thank you received: 1679
2 weeks 6 days ago #171201
by Mr. Dam
Replied by Mr. Dam on topic Add number of rooms
Hi Julian,
You can open file: root -> components -> com_osproperty -> helpers -> helper.php
Find function:
and replace 10 by your number you need.
Thanks
Dam
You can open file: root -> components -> com_osproperty -> helpers -> helper.php
Find function:
Code:
public static function dropdropBath($name, $bath, $class, $jsScript, $firstOption)
{
$configClass = self::loadConfig();
$bathArr = array();
$bathArr[] = HTMLHelper::_('select.option', '', Text::_($firstOption));
for ($i = 1; $i <= 10; $i++) {
$bathArr[] = HTMLHelper::_('select.option', $i.'.00', $i);
if ($configClass['fractional_bath'] == 1) {
$bathArr[] = HTMLHelper::_('select.option', $i . '.25', $i . '.25');
$bathArr[] = HTMLHelper::_('select.option', $i . '.50', $i . '.50');
$bathArr[] = HTMLHelper::_('select.option', $i . '.75', $i . '.75');
}
}
return HTMLHelper::_('select.genericlist', $bathArr, $name, 'class="' . $class . '" ' . $jsScript, 'value', 'text', $bath);
}
and replace 10 by your number you need.
Thanks
Dam
The following user(s) said Thank You: julian
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.