OS Property support center

Property Listings Layout

  • frankie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 7 months ago #37182 by frankie
Property Listings Layout was created by frankie
Hi

is it possible to show square feet, furnished, agent name & phone ?

please refer to the attached image.
Attachments:

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

More
10 years 7 months ago #37189 by Mr. Dam
Replied by Mr. Dam on topic Re: Property Listings Layout
Hi Frankie,
It's possible to add more information into property listing page. As you picture, you want to add Square feet, Furnished, Agent name and phone into the list.
I am not sure with Furnished, because it isn't the fixed field of properties (maybe the extra field or amenities) but with square_feet, you follow these steps
1. Open file
components > com_osproperty > templates > your_current_template > listing.html.tpl.php
find
<?php
$addInfo = array();
if($configClass == 1){
if($row->bed_room > 0){
$addInfo[] = $row->bed_room." ".JText::_('OS_BEDROOMS');
}
}
if($configClass == 1){
if($row->bath_room > 0){
$addInfo[] = $row->bath_room." ".JText::_('OS_BATHROOMS');
}
}
if($configClass == 1){
if($row->rooms > 0){
$addInfo[] = $row->rooms." ".JText::_('OS_ROOMS');
}
}
if(count($addInfo) > 0){
?>
<div class="row-fluid">
<div class="span12">
<div class="ospitem-iconbkgr">
<span class="ospitem-leftpad">
<?php
echo implode(" | ",$addInfo);
?>
</span>
</div>
</div>
</div>
<?php } ?>

and change to

<?php
$addInfo = array();
if($configClass == 1){
if($row->bed_room > 0){
$addInfo[] = $row->bed_room." ".JText::_('OS_BEDROOMS');
}
}
if($configClass == 1){
if($row->bath_room > 0){
$addInfo[] = $row->bath_room." ".JText::_('OS_BATHROOMS');
}
}
if($configClass == 1){
if($row->rooms > 0){
$addInfo[] = $row->rooms." ".JText::_('OS_ROOMS');
}
}
if($row->square_feet > 0){
$addInfo[] = $row->square_feet." ".JText::_('Sqft');
}
if(count($addInfo) > 0){
?>
<div class="row-fluid">
<div class="span12">
<div class="ospitem-iconbkgr">
<span class="ospitem-leftpad">
<?php
echo implode(" | ",$addInfo);
?>
</span>
</div>
</div>
</div>
<?php } ?>

with agent name & phone, you can only show agent name, if you want to show agent phone, you need to edit function listProperties and function advSearch in file classes > listing.php

to show agent name in the list, please find
<div class="row-fluid ospitem-bopad">
<div class="span12">
<?php
echo $row->pro_small_desc;
?>
</div>
</div>

and replace by

<div class="row-fluid ospitem-bopad">
<div class="span12">
Agent: <?php echo $row->agent_name;?>
<?php
echo $row->pro_small_desc;
?>
</div>
</div>

You must do the same with file
results.html.tpl.php in the same template folder.
Good luck
Dam
The following user(s) said Thank You: frankie

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

More
10 years 6 months ago #38044 by giorgio corbary
Replied by giorgio corbary on topic Re: Property Listings Layout
Hi Dam,
I have the same problem. I wanted to add sqft on the main page. So I took your advice that you have given to another user, but I think there is something wrong. It gives me error.
Can you help me please?
Thanks in advance

Giorgio

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

More
10 years 6 months ago #38048 by Mr. Dam
Replied by Mr. Dam on topic Re: Property Listings Layout
Hi Giorgio,
Can you please send me your site information with super admin account, ftp account so i can check the issue for you. Please send the screenshot of the pages that you want to change sqft to sqfm
Thanks
Dam

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

Moderators: Mr. DamNguyen Phu Quan