OS Property support center

How to add agent email address to print page..

  • Anthony Mezas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #42488 by Anthony Mezas
How to add agent email address to print page.. was created by Anthony Mezas
In the propertyprint.php page i have been trying to add the agents email address, can anyone help?
Attachments:

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

More
11 years 2 months ago #42496 by Mr. Dam
Hi,
In that file, find
<tr>
<td class="key" >
<?php echo JText::_('OS_NAME')?>
</td>
<td>
<strong><?php echo $row->agent->name;?></strong>
</td>
</tr>
and change to

<tr>
<td class="key" >
<?php echo JText::_('OS_NAME')?>
</td>
<td>
<strong><?php echo $row->agent->name;?></strong>
</td>
</tr>
<?php
if(($configClass == 1) and ($row->agent->email != "")){
?>
<tr>
<td class="key" >
<?php echo JText::_('OS_EMAIL')?>
</td>
<td>
<?php echo $row->agent->email;?>
</td>
</tr>
<?php
}
?>

Good luck
Dam

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

  • Anthony Mezas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #42533 by Anthony Mezas
Replied by Anthony Mezas on topic How to add agent email address to print page..
Hi Dam,
Agents email address is not showing:
<tr>
<td class="key" >
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/email.png" />
</td>
<?php
if(($configClass == 1) and ($row->agent->email != "")){
?>
<td><?php echo $row->agent->email;?>
</td>
</tr>
<?php
}
?>

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

Moderators: Mr. DamNguyen Phu Quan