OS Property support center

Possible if I want more than 20 floors of Condo?

  • Maneerat
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #71559 by Maneerat
The condo floor 's box is maximum at 20 floors it possible if I want more than 20 floors of Condo?



Attachments:

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

More
9 years 6 months ago #71564 by Mr. Dam
Hi,
To increase the number of floors, please open file:

components > com_osproperty > helpers > helper.php

Find
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
  • New Member
More
9 years 6 months ago #71567 by Maneerat
It doesn't work I work with back-end joomla

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

More
9 years 6 months ago #71570 by Mr. Dam
Hi,
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');
and change to
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.

More
9 years 5 months ago #72716 by ahmed
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.

More
9 years 5 months ago #72726 by Mr. Dam
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

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

More
9 years 5 months ago #72768 by ahmed
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.

More
9 years 5 months ago #72770 by Mr. Dam
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

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

Moderators: Mr. DamNguyen Phu Quan