Jump to content

Showing All Messages in Support Emails


grantwood

Recommended Posts

Hello,

 

One of the placeholders in the support emails is {$ticket_url}, which links to a page that shows all of the messages for a given ticket.

 

Is it possible to include all messages in a support email, perhaps using the {foreach} tag? Or maybe you can add a {ticket_messgae_all} tag? ;)

 

The reason has to do with Amazon (we are a reseller there). Amazon does not allow URLs when communicating with customers.

 

Regards,

Sean

Link to comment
Share on other sites

Hello,

 

One of the placeholders in the support emails is {$ticket_url}, which links to a page that shows all of the messages for a given ticket.

 

Is it possible to include all messages in a support email, perhaps using the {foreach} tag? Or maybe you can add a {ticket_messgae_all} tag? ;)

 

The reason has to do with Amazon (we are a reseller there). Amazon does not allow URLs when communicating with customers.

 

Regards,

Sean

 

One of our customers is also Amazon reseller. There isn't a variable available in the ticket reply email template for this, so we've created the following code:

{php}
$result = select_query("tbltickets", "id,date,message", array("tid" => $this->_tpl_vars['ticket_id']));
while($data = mysql_fetch_array($result))
{
$result2 = select_query("tblticketreplies", "date,message", array("tid" => $data['id']), "id", "DESC");
while($data2 = mysql_fetch_array($result2))
{
	echo "----------------------------------------------<br />\n"; 
	echo $data2['date']."<br />\n"; 
	echo "----------------------------------------------<br />\n"; 
	echo $data2['message']."<br />\n"; 
}

echo "----------------------------------------------<br />\n"; 
echo $data['date']."<br />\n"; 
echo "----------------------------------------------<br />\n"; 
echo $data['message']."<br />\n"; 
}
{/php}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated