Page 1 of 1

Show ticket owner to customer on page options

Posted: Fri Feb 27, 2015 7:09 pm
by ancientt
I want customers who are seeing their ticket in the webpage to also see which staff member owns that ticket. I am sure I could modify the PHP to do this, but before I do, is there already a way to enable that? I haven't been able to find it.

Re: Show ticket owner to customer on page options

Posted: Fri Feb 27, 2015 7:18 pm
by Klemen
No, this is not something that can be enabled in HESK.

However, there is a function called hesk_getOwnerName() that will make this easy for you. Simply use this PHP code to print the owner name within the "ticket.php" file:

Code: Select all

hesk_getOwnerName($ticket['owner'])
An example within a <?php code block:

Code: Select all

echo hesk_getOwnerName($ticket['owner']);
And example within HTML code:

Code: Select all

<?php echo hesk_getOwnerName($ticket['owner']); ?>

Re: Show ticket owner to customer on page options

Posted: Fri Feb 27, 2015 9:47 pm
by ancientt
Perfect. That did exactly what I needed.