Page 1 of 1

Canned Response Variables

Posted: Tue Oct 30, 2012 6:40 am
by stikky
Hello,

Customizing email templates there is a variable that can be used, such as %%TRACK_ID%%. Also, in the Canned Responses, there are other variables that can be used and they work great.

However, I'm trying to use the %%TRACK_ID%% inside of my canned responses, is this already built in and I just can't find the variables?

Re: Canned Response Variables

Posted: Tue Oct 30, 2012 9:55 am
by Klemen
There is no tracking ID variable for canned responses.

You would have to modify admin_ticket.php file to support them, for example find

Code: Select all

myMsg = myMsg.replace(/%%HESK_NAME%%/g, '<?php echo hesk_jsString($ticket['name']); ?>');
and add something like

Code: Select all

myMsg = myMsg.replace(/%%TRACK_ID%%/g, '<?php echo hesk_jsString($ticket['trackid']); ?>');

Re: Canned Response Variables

Posted: Tue Oct 30, 2012 2:51 pm
by stikky
Worked like a charm. Do you have documentation of all other declared variables?

Re: Canned Response Variables

Posted: Tue Oct 30, 2012 8:22 pm
by Klemen
I'm afraid not, but if you look at the database structure it should be basically everything that's in the database.