Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services
OS Property support center

How to add agent email address to print page..

  • Anthony Mezas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 7 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?

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

More
12 years 7 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
12 years 7 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. Dam, Nguyen Phu Quan