grantwood Posted October 30, 2010 Share Posted October 30, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted October 30, 2010 Share Posted October 30, 2010 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} 0 Quote Link to comment Share on other sites More sharing options...
grantwood Posted November 2, 2010 Author Share Posted November 2, 2010 @m00, Thanks for the reply. Where can I find information on the select_query function? 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted November 2, 2010 Share Posted November 2, 2010 @m00, Thanks for the reply. Where can I find information on the select_query function? I don't think there's official documentation about that. Do you have any questions about it? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.