OS Property support center

Bathrooms and bedrooms

  • fabrizio gerbi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #145277 by fabrizio gerbi
Bathrooms and bedrooms was created by fabrizio gerbi
Hello
How I change the max number of bedrooms and bathrooms in the "Manage Property>Details" , now is set to Bath=10 and Bed=20 , I know I can change the number on the database the table xxx_osrs_properties, but I need to the agents are be able to put the right number without modify the database
Thank you

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

More
4 years 1 month ago #145286 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Bathrooms and bedrooms
Hi,
Please open file: root -> components -> com_osproperty -> helpers -> helper.php
Find:
Code:
public static function dropdropBath($name, $bath, $class, $jsScript, $firstOption)     {         $configClass = self::loadConfig();         $bathArr = array();         $bathArr[] = JHTML::_('select.option', '', JText::_($firstOption));         for ($i = 1; $i <= 10; $i++) {             $bathArr[] = JHTML::_('select.option', $i.'.00', $i);             if ($configClass['fractional_bath'] == 1) {                 $bathArr[] = JHTML::_('select.option', $i . '.25', $i . '.25');                 $bathArr[] = JHTML::_('select.option', $i . '.50', $i . '.50');                 $bathArr[] = JHTML::_('select.option', $i . '.75', $i . '.75');             }         }         return JHTML::_('select.genericlist', $bathArr, $name, 'class="' . $class . '" ' . $jsScript, 'value', 'text', $bath);     }

and change to
Code:
public static function dropdropBath($name, $bath, $class, $jsScript, $firstOption)     {         $configClass = self::loadConfig();         $bathArr = array();         $bathArr[] = JHTML::_('select.option', '', JText::_($firstOption));         for ($i = 1; $i <= 20; $i++) {             $bathArr[] = JHTML::_('select.option', $i.'.00', $i);             if ($configClass['fractional_bath'] == 1) {                 $bathArr[] = JHTML::_('select.option', $i . '.25', $i . '.25');                 $bathArr[] = JHTML::_('select.option', $i . '.50', $i . '.50');                 $bathArr[] = JHTML::_('select.option', $i . '.75', $i . '.75');             }         }         return JHTML::_('select.genericlist', $bathArr, $name, 'class="' . $class . '" ' . $jsScript, 'value', 'text', $bath);     }

Thanks
Dam
The following user(s) said Thank You: fabrizio gerbi

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

  • fabrizio gerbi
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 1 month ago #145287 by fabrizio gerbi
Replied by fabrizio gerbi on topic Bathrooms and bedrooms
Worked perfect, thanks

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

More
4 years 2 weeks ago #145708 by Emil
Replied by Emil on topic Bathrooms and bedrooms
Hello. In rooms, how do I add text +1? Now dropdown 1,2,3 and so on. I want it to be 1 + 1, 2 + 1, 3 + 1, etc.
+1 does not affect anything

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

More
4 years 1 week ago #145721 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Bathrooms and bedrooms
Hi Emil,
Currently, in OS Property, Bath and Bed are number fields, so, we can't add option for Bath and Bed like 1+1, 2+1..etc
Thanks
Dam

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

Moderators: Dang Thuc DamNguyen Phu Quan