Canned Response Variables

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
stikky
Posts: 4
Joined: Tue Oct 30, 2012 6:35 am

Canned Response Variables

Post 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?
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Canned Response Variables

Post 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']); ?>');
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
stikky
Posts: 4
Joined: Tue Oct 30, 2012 6:35 am

Re: Canned Response Variables

Post by stikky »

Worked like a charm. Do you have documentation of all other declared variables?
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Canned Response Variables

Post by Klemen »

I'm afraid not, but if you look at the database structure it should be basically everything that's in the database.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply