- Posts: 2
- Thank you received: 0
OS Property support center
Possible if I want more than 20 floors of Condo?
- Maneerat
- Topic Author
- Offline
- New Member
-
Less
More
9 years 6 months ago #71559
by Maneerat
Possible if I want more than 20 floors of Condo? was created by Maneerat
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 6 months ago #71564
by Mr. Dam
Replied by Mr. Dam on topic Possible if I want more than 20 floors of Condo?
Hi,
To increase the number of floors, please open file:
and change 20 to another number
Thanks
Dam
To increase the number of floors, please open file:
Findcomponents > com_osproperty > helpers > helper.php
Code:
public static function dropdropFloor($name, $room, $class, $jsScript, $firstOption)
{
$roomArr = array();
$roomArr[] = JHTML::_('select.option', '', JText::_($firstOption));
for ($i = 1; $i <= 20; $i++) {
$roomArr[] = JHTML::_('select.option', $i, $i);
}
return JHTML::_('select.genericlist', $roomArr, $name, 'class="' . $class . '" ' . $jsScript, 'value', 'text', $room);
}
and change 20 to another number
Thanks
Dam
Please Log in or Create an account to join the conversation.
- Maneerat
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
9 years 6 months ago #71567
by Maneerat
Replied by Maneerat on topic Possible if I want more than 20 floors of Condo?
It doesn't work I work with back-end joomla
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 6 months ago #71570
by Mr. Dam
Replied by Mr. Dam on topic Possible if I want more than 20 floors of Condo?
Hi,
With Back-end, please open file:
administrator > components > com_osproperty > classes > property.php
Find
and change to
Good luck
Dam
With Back-end, please open file:
administrator > components > com_osproperty > classes > property.php
Find
Code:
$lists['nfloors'] = OSPHelper::dropdropRoom('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
Code:
$lists['nfloors'] = OSPHelper::dropdropFloor('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
Good luck
Dam
Please Log in or Create an account to join the conversation.
- ahmed
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
9 years 5 months ago #72716
by ahmed
Replied by ahmed on topic Possible if I want more than 20 floors of Condo?
i did the both code modifications , but it appears in backend only but when add property from frontend doesnt appear the maximum is 20 floors ??? any help please ?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 5 months ago #72726
by Mr. Dam
Replied by Mr. Dam on topic Possible if I want more than 20 floors of Condo?
Hi Ahmed,
In function: dropdropFloor in file: components > com_osproperty > helpers > helper.php
Please find
for ($i = 1; $i <= 20; $i++) {
and change 20 to another number you want
Good luck
Dam
In function: dropdropFloor in file: components > com_osproperty > helpers > helper.php
Please find
for ($i = 1; $i <= 20; $i++) {
and change 20 to another number you want
Good luck
Dam
Please Log in or Create an account to join the conversation.
- ahmed
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
9 years 5 months ago #72768
by ahmed
Replied by ahmed on topic Possible if I want more than 20 floors of Condo?
Hello , i did the same as u said , but on the frontend doesnt appear . i changed the no to 30 but it still up to 20 only ??
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
9 years 5 months ago #72770
by Mr. Dam
Replied by Mr. Dam on topic Possible if I want more than 20 floors of Condo?
Hi,
At front-end, you need extra steps, please open file: components > com_osproperty > classes > listing.php
Find
$lists = OSPHelper::dropdropRoom('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
and change to
$lists = OSPHelper::dropdropFloor('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
Good luck
Dam
At front-end, you need extra steps, please open file: components > com_osproperty > classes > listing.php
Find
$lists = OSPHelper::dropdropRoom('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
and change to
$lists = OSPHelper::dropdropFloor('number_of_floors',$row->number_of_floors,'input-small chosen','','OS_FLOORS');
Good luck
Dam
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.