- Posts: 6
- Thank you received: 0
OS Property support center
Change number of rooms, bathrooms and more...
- Thanasis Karatzas
- Topic Author
- Offline
- New Member
-
Less
More
11 years 2 months ago #42394
by Thanasis Karatzas
Change number of rooms, bathrooms and more... was created by Thanasis Karatzas
Hello my friends,
I make a real estate website for a customer and he would like to add hotels too.
There we have a problem that the number of rooms or bathrooms is more than 20.
How is it possible to change the number of room from 1-20 to 1-100 or instead of 1,2,3 make it 10+, 20+ etc
Also i would like to change some names of the amenities, for example replace "wood stove"
with "barbecue" and add 2-3 or more.
Thanx in advance!
I make a real estate website for a customer and he would like to add hotels too.
There we have a problem that the number of rooms or bathrooms is more than 20.
How is it possible to change the number of room from 1-20 to 1-100 or instead of 1,2,3 make it 10+, 20+ etc
Also i would like to change some names of the amenities, for example replace "wood stove"
with "barbecue" and add 2-3 or more.
Thanx in advance!
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
11 years 2 months ago #42405
by Mr. Dam
Replied by Mr. Dam on topic Change number of rooms, bathrooms and more...
Hi Thanasis,
There are 5 places that you need to make the changes to increase the number rooms, bathrooms, bedrooms.
1. Add/edit properties at back-end.
please open file
administrator > components > com_osproperty > classes > property.php
find
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=20;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-mini"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=20;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-mini"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=20;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-mini" ','value','text',$row->rooms);
and change to :
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-mini"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-mini"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-mini" ','value','text',$row->rooms);
2. Add/edit properties at front-end
please open file
components > com_osproperty > classes > listing.php
find
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=10;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-small"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=10;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-small"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=10;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-small" ','value','text',$row->rooms);
and change to
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-small"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-small"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-small" ','value','text',$row->rooms);
3. Advanced search page
please open file
components > com_osproperty > classes > listing.php
find
// number bath room
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-small" style="width:100px;"','value','text',$nbath);
//number bed room
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-small" style="width:100px;"','value','text',$nbed);
//number bed room
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-small" style="width:100px;"','value','text',$nroom);
and change to
// number bath room
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-small" style="width:100px;"','value','text',$nbath);
//number bed room
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-small" style="width:100px;"','value','text',$nbed);
//number bed room
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-small" style="width:100px;"','value','text',$nroom);
4. Locator search
please open file
components > com_osproperty > classes > locator.php
find
//number bed room
$lists = $nbed;
for($i=0;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" ','value','text',$nbed);
// number bath room
for($i=0;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini"','value','text',$nbath);
// number bath room
for($i=0;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom',' class="input-mini"','value','text',$nroom);
and change to
//number bed room
$lists = $nbed;
for($i=0;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" ','value','text',$nbed);
// number bath room
for($i=0;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini"','value','text',$nbath);
// number bath room
for($i=0;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom',' class="input-mini"','value','text',$nroom);
5. Search module
please open file:
modules > mod_ospropertysearch > mod_ospropertysearch.php
find
// number bath room
$nbath = Jrequest::getVar('nbath',0);
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini" style="width:100px;"','value','text',$nbath);
//number bed room
$nbed = Jrequest::getVar('nbed',0);
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" style="width:100px;"','value','text',$nbed);
//number bed room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
and change to
// number bath room
$nbath = Jrequest::getVar('nbath',0);
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini" style="width:100px;"','value','text',$nbath);
//number bed room
$nbed = Jrequest::getVar('nbed',0);
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" style="width:100px;"','value','text',$nbed);
//number bed room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
Good luck
Dam
There are 5 places that you need to make the changes to increase the number rooms, bathrooms, bedrooms.
1. Add/edit properties at back-end.
please open file
administrator > components > com_osproperty > classes > property.php
find
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=20;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-mini"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=20;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-mini"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=20;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-mini" ','value','text',$row->rooms);
and change to :
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-mini"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-mini"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-mini" ','value','text',$row->rooms);
2. Add/edit properties at front-end
please open file
components > com_osproperty > classes > listing.php
find
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=10;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-small"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=10;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-small"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=10;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-small" ','value','text',$row->rooms);
and change to
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'bed_room','class="input-small"','value','text',$row->bed_room);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'bath_room','class="input-small"','value','text',$row->bath_room);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_NUMBER_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'rooms','class="input-small" ','value','text',$row->rooms);
3. Advanced search page
please open file
components > com_osproperty > classes > listing.php
find
// number bath room
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-small" style="width:100px;"','value','text',$nbath);
//number bed room
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-small" style="width:100px;"','value','text',$nbed);
//number bed room
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-small" style="width:100px;"','value','text',$nroom);
and change to
// number bath room
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-small" style="width:100px;"','value','text',$nbath);
//number bed room
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-small" style="width:100px;"','value','text',$nbed);
//number bed room
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-small" style="width:100px;"','value','text',$nroom);
4. Locator search
please open file
components > com_osproperty > classes > locator.php
find
//number bed room
$lists = $nbed;
for($i=0;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" ','value','text',$nbed);
// number bath room
for($i=0;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini"','value','text',$nbath);
// number bath room
for($i=0;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom',' class="input-mini"','value','text',$nroom);
and change to
//number bed room
$lists = $nbed;
for($i=0;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" ','value','text',$nbed);
// number bath room
for($i=0;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini"','value','text',$nbath);
// number bath room
for($i=0;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom',' class="input-mini"','value','text',$nroom);
5. Search module
please open file:
modules > mod_ospropertysearch > mod_ospropertysearch.php
find
// number bath room
$nbath = Jrequest::getVar('nbath',0);
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini" style="width:100px;"','value','text',$nbath);
//number bed room
$nbed = Jrequest::getVar('nbed',0);
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" style="width:100px;"','value','text',$nbed);
//number bed room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=5;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
and change to
// number bath room
$nbath = Jrequest::getVar('nbath',0);
$bathArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath',' class="input-mini" style="width:100px;"','value','text',$nbath);
//number bed room
$nbed = Jrequest::getVar('nbed',0);
$lists = $nbed;
$bedArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','class="input-mini" style="width:100px;"','value','text',$nbed);
//number bed room
$nroom = Jrequest::getVar('nroom',0);
$lists = $nroom;
$roomArr[] = JHTML::_('select.option','',JText::_('OS_ANY'));
for($i=1;$i<=100;$i++){
$roomArr[] = JHTML::_('select.option',$i,$i.'+');
}
$lists = JHTML::_('select.genericlist',$roomArr,'nroom','class="input-mini" style="width:100px;"','value','text',$nroom);
Good luck
Dam
The following user(s) said Thank You: Thanasis Karatzas
Please Log in or Create an account to join the conversation.
- Thanasis Karatzas
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
11 years 2 months ago - 11 years 2 months ago #42424
by Thanasis Karatzas
Replied by Thanasis Karatzas on topic Change number of rooms, bathrooms and more...
Thank you for your answer Dang! I had already found property.php by myself and the system is working fine but i will change the rest too so i am sure that everything works perfect! I believe that in a next update it would be better to replace the dropdown and just have a text field to let users write the number instead of the dropdown in rooms, bathrooms etc. It would be more practical and also maybe require less code from you so it would made the system faster!
Also, i had a second question about the amenities but i think due to the long first answer you forgot it.
I would like to change some names of the amenities, for example replace "wood stove"
with "barbecue" or change "Cable Internet" to "WiFi Internet" and also add 2-3 new amenities. How can this be done?
Thanx again in advance!
Also, i had a second question about the amenities but i think due to the long first answer you forgot it.
I would like to change some names of the amenities, for example replace "wood stove"
with "barbecue" or change "Cable Internet" to "WiFi Internet" and also add 2-3 new amenities. How can this be done?
Thanx again in advance!
Last edit: 11 years 2 months ago by Thanasis Karatzas.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
11 years 2 months ago #42425
by Mr. Dam
Replied by Mr. Dam on topic Change number of rooms, bathrooms and more...
Hi,
You can manage the Amenities by using feature: OS Property > Manage Convenience at backend.
Thanks
Dam
You can manage the Amenities by using feature: OS Property > Manage Convenience at backend.
Thanks
Dam
The following user(s) said Thank You: Thanasis Karatzas
Please Log in or Create an account to join the conversation.
- Thanasis Karatzas
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
11 years 2 months ago #42426
by Thanasis Karatzas
Replied by Thanasis Karatzas on topic Change number of rooms, bathrooms and more...
So quick reply Dang!
I just discovered it!
As i said above in a next update i have to propose 2 things that in my opinion would make the system more practical:
1. Replace the dropdown from number of rooms, bathrooms etc to a simple numeric field to let users write just a number.
2. In the Convenience (which i am editing right now) add the option for the user to use an icon for each amenity like many systems have!
Thank you again for your support!
I just discovered it!
As i said above in a next update i have to propose 2 things that in my opinion would make the system more practical:
1. Replace the dropdown from number of rooms, bathrooms etc to a simple numeric field to let users write just a number.
2. In the Convenience (which i am editing right now) add the option for the user to use an icon for each amenity like many systems have!
Thank you again for your support!
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
11 years 2 months ago #42431
by Mr. Dam
Replied by Mr. Dam on topic Change number of rooms, bathrooms and more...
Thank you for your suggestion, i will discuss with my team before deciding to implement it.
Regards,
Dam
Regards,
Dam
The following user(s) said Thank You: Thanasis Karatzas
Please Log in or Create an account to join the conversation.
- Székely Zsolt
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
10 years 4 months ago - 10 years 4 months ago #54776
by Székely Zsolt
Replied by Székely Zsolt on topic Change number of rooms, bathrooms and more...
Hi Dam!
This implementation doesn't work for me in the version : 2.7.2
Am I doing something wrong?
I want to have more then 200 rooms in my system.
Please help!
Regards
Zsolt
This implementation doesn't work for me in the version : 2.7.2
Am I doing something wrong?
I want to have more then 200 rooms in my system.
Please help!
Regards
Zsolt
Last edit: 10 years 4 months ago by Székely Zsolt.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 4 months ago #54804
by Mr. Dam
Replied by Mr. Dam on topic Change number of rooms, bathrooms and more...
Hi Zsolt,
Where are the places that the change don't work for you. Please tell me the function so i can give you details solution
Thanks
Dam
Where are the places that the change don't work for you. Please tell me the function so i can give you details solution
Thanks
Dam
Please Log in or Create an account to join the conversation.
- filaretos
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 0
10 years 3 months ago #56888
by filaretos
Replied by filaretos on topic Change number of rooms, bathrooms and more...
Hello,
I ve made the changes you mention above but when i add a property it is 1-20. It hasnt changed to 1-100.
In html / administrator / components / com_osproperty / classes / property.php
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nbed);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nbath);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'nrooms','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nrooms);
What am i doing wrong?
I ve made the changes you mention above but when i add a property it is 1-20. It hasnt changed to 1-100.
In html / administrator / components / com_osproperty / classes / property.php
//number bed rooms
$bedArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_BEDS'));
for($i=1;$i<=100;$i++){
$bedArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bedArr,'nbed','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nbed);
//number bath rooms
$bathArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_BATHS'));
for($i=1;$i<=100;$i++){
$bathArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$bathArr,'nbath','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nbath);
//number rooms
$roomsArr[] = JHTML::_('select.option','',JText::_('OS_SELECT_MIN_ROOMS'));
for($i=1;$i<=100;$i++){
$roomsArr[] = JHTML::_('select.option',$i,$i);
}
$lists = JHTML::_('select.genericlist',$roomsArr,'nrooms','style="width:130px;" class="input-mini" onChange="javascript:document.adminForm.submit();"','value','text',$nrooms);
What am i doing wrong?
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13056
- Thank you received: 1696
10 years 3 months ago #56924
by Mr. Dam
Replied by Mr. Dam on topic Change number of rooms, bathrooms and more...
The problem is the variable $lists, it's the Array variable, you should have the name for that variable. For example
$lists, $lists..etc
Thanks
Dam
$lists, $lists..etc
Thanks
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.