OS Property support center

Add number of rooms

  • julian
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
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?

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

More
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:
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. DamNguyen Phu Quan