Jump to content

Send print job to point of sale receipt printer


Eiolon

Recommended Posts

I now PHP is server side but I am not sure if there is some way to interface with hardware in some manner.

 

Basically, I have an event registration page.  I would like the info that was registered to be sent to a receipt printer (such as a Star TSP series) as soon as the button is clicked to register.

 

Even Name

Date & Time

Customer Name

 

Currently, we get to a confirmation page in the web browser, and that is printed on 8.5x11 paper.  As you can image, it is quite a waste.  It would also like to stop having to go to FILE > PRINT.  I just want it to be instant.

 

I can't print that confirmation page on the receipt printer because the browsers header/footer makes it 11 inches long for 3 lines.

 

So any ideas on how to send directly to the receipt printer after submitting registration?

You'll first want to read this:

http://php.net/manual/en/function.printer-open.php

 

If that doesn't help, you'll need to look at the documentation for the printer driver, and see if you can find the syntax of the protocol it uses. Also, the PHP manual should be able to help you figure out how to connect to the printer, depending upon which type of connection it uses.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.