Page 1 of 1
Ticket-id to Barcode
Posted: Wed Jul 31, 2013 8:23 am
by jones
Hello
Is it possible that when I print a case that ticket id change into a bar code?
Is there a certain way it should be set up on?
Is there a program I can use or a php code which can be inserted?
Hope you can help me
Jonas
Re: Ticket-id to Barcode
Posted: Thu Aug 01, 2013 3:38 pm
by Klemen
Not at the moment, but sounds like a good idea. I will look into it, but no promises.
Re: Ticket-id to Barcode
Posted: Sun Nov 03, 2013 7:52 pm
by jones
Hi Klemen,
Becomes barcode an option in Hesk?
When I print a ticket or a case?
Jonas
Re: Ticket-id to Barcode
Posted: Mon Nov 04, 2013 8:07 pm
by Klemen
Not yet, but probably in one of the future releases.
Re: Ticket-id to Barcode
Posted: Thu Jan 29, 2015 1:47 pm
by Treblig
Hi,
You don't specify which type of barcode you need so I take it a good old code 39 will do so you can (very) easily add one by using code found here (not mine) :
source code
line to add to ticket.php
Assuming you put the source code in ./
barcode.php you change ticket.php (around line 280) as :
Code: Select all
if ($hesk_settings['sequential'])
{
echo '<tr>
<td colspan="2">'.$hesklang['trackID'].': '.$trackingID.' ('.$hesklang['seqid'].': '.$ticket['id'].')
<img src="./barcode.php?string=' .$trackingID.'" alt="Code barre" /></td>
<td> </td>
</tr>';
}
Hope this helps
edit : and if you don't mind depending on a google API, you can display a QR code y adding this line to ticket.php (no need for barcode.php) :
Code: Select all
<img src="https://chart.googleapis.com/chart?chs=100x100&cht=qr&chl=' . $trackingID . '&choe=UTF-8" title="' . $trackingID . '" />
Re: Ticket-id to Barcode
Posted: Fri Jan 30, 2015 6:49 am
by Klemen
Thanks for sharing!