Ticket-id to Barcode

All other scripts belong here
Post Reply
jones
Posts: 75
Joined: Sat Jul 20, 2013 6:41 pm

Ticket-id to Barcode

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

Re: Ticket-id to Barcode

Post by Klemen »

Not at the moment, but sounds like a good idea. I will look into it, but no promises.
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
jones
Posts: 75
Joined: Sat Jul 20, 2013 6:41 pm

Re: Ticket-id to Barcode

Post by jones »

Hi Klemen,

Becomes barcode an option in Hesk?
When I print a ticket or a case?

Jonas
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Ticket-id to Barcode

Post by Klemen »

Not yet, but probably in one of the future releases.
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
Treblig
Posts: 10
Joined: Wed Jan 28, 2015 5:59 pm

Re: Ticket-id to Barcode

Post 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'].') &nbsp; &nbsp;
	<img src="./barcode.php?string=' .$trackingID.'" alt="Code barre" /></td>
	<td>&nbsp;</td>
	</tr>';
}
Image

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 . '" />
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Ticket-id to Barcode

Post by Klemen »

Thanks for sharing!
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