- Posts: 8
- Thank you received: 0
OS Property support center
Bathrooms and bedrooms
- fabrizio gerbi
- Topic Author
- Offline
- New Member
Less
More
3 years 5 months 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
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.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12815
- Thank you received: 1659
3 years 5 months ago #145286
by Mr. Dam
Replied by Mr. Dam on topic Bathrooms and bedrooms
Hi,
Please open file: root -> components -> com_osproperty -> helpers -> helper.php
Find:
and change to
Thanks
Dam
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
Less
More
- Posts: 8
- Thank you received: 0
3 years 5 months 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.
- Emil
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 years 4 months 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
+1 does not affect anything
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12815
- Thank you received: 1659
3 years 4 months ago #145721
by Mr. Dam
Replied by Mr. 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
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: 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.