Hi,
I really like the uberpos module.
I built a website with a POS system based on the Uberpos module, panels,...
Besides a few issues, it works excellent.
I just have a question on how to format the receipts easily for printing on a ticket printer like Star TSP100.
I have the impression that print-outs are formatted on A4 for the moment (even on the ticket printer).
Do I need to change the receipt template or create a custom .css or ... ?
Or just set the settings of the printer correctly ?
thanks in advance,
Koen.
Comments
Comment #1
serialjaywalker commentedI think it should just be a matter of setting the default paper size on your system. That's all I recall having to do on my Mac, anyway.
The exception, I found, is on Linux systems, where a Firefox bug prevents this setting from being applied correctly. It took me several hours of fiddling with Firefox's prefs.js file to get that working correctly. However, I did get it working, so if you're having trouble with that, let me know and I can post some details when I get back to them.
Comment #2
last call media commentedOur Star TSP 100 automatically scales down A4. So we just style its css to have really big font. This is certainly one aspect of UberPOS that needs to be easier to configure. It can be tricky to target the IDs and Classes right.
Comment #3
kmolkens commentedHere are some more details of my configuration.
I'm using a Drupal site on Ubuntu.
My client is a Windows 7 (64-bit) with Firefox 3.6.12.
I connected a Ticket printer Star TSP 143 ECO using USB.
I would like to print receipts and cut the paper when the last line of the receipt is printed.
I played a little bit with following settings.
1) Emulation mode in configuration utility.
Modus Star Line (standaard)
Modus ESC/POS
-> Modus ESC/POS Seams to be the best for the moment.
2) Paper size in printer settings (on different configuration pages of printer setttings and in Firefox...)
When setting A4 -> A4 is used correctly and paper is cut correctly but this paper size is useless for receipts.
When setting 72 mm x Receipt, print layout is better but paper is not cut.
(this is a bit annoying as the printer continues until out of paper :))
When setting 72 mm x 200 mm cuts the page after 20 cm but this is to long for a normal receipt.
There seams to be a special font "Control" to send control characters to be printer, maybe this is useful to cut the paper right at the end of the receipt ?
Comment #4
kmolkens commentedManaged to get it working on Firefox 3.6.12 (not on IE8 yet) on Windows 7.
Here's a short description of actions done to get it working :
1) Install printer drivers using CD delivered with ticket printer
2) Connect printer to USB.
3) Set printer driver settings to “72 mm x Receipt”.
4) Set Firefox settings to use full page width
File->Page Setup
Margins to “0”
Headers and footers to blank.
5) Customize print header – footer of receipt by going to drupal site : webshop->settings->uberpos.
6) Customize /sites/all/modules/uberpos/theme/uberpos-print-receipt.tpl.php if needed.
7) Adapt Local.Css to set pagesize + cut paper at the end of ticket automatically (without these settings paper is not cut after last printed line)
Maybe theses settings can still be optimized but with these settings it doesn't matter very much what page settings are used as all receipt layout is formatted 72 mm wide.
Content of local.css
-------------------
/* Change layout of ticket printer for receipts */
#receipt {
width: 72mm; margin: 0; float: none;
}
#receipt-body {
width: 72mm; margin: 0; float: none;
}
#receipt-header {
width: 72mm; margin: 0; float: none;
}
#receipt-screen {
width: 72mm; margin: 0; float: none;
}
.uberpos-line-item {
width: 72mm; margin: 0; float: none;
}
#uberpos-total .receipt, #uberpos-paid .receipt, #uberpos-due .receipt {
width: 72mm; margin: 0; float: none;
}
#receipt-screen {
width: 72mm; margin: 0; float: none;
}
#receipt-order-id {
width: 72mm; margin: 0; float: none;
}
#receipt-footer {
width: 72mm; margin: 0; float: none;
}
Comment #5
deggertsen commentedWe have been struggling with getting this working for months on the TSP100. Everything actually does seem to work, except that the product prices get cut off for some reason. It's as if the product section goes to a full paper size format while the rest of the receipt prints as expected. I've followed all the instructions above, but sadly it still doesn't work. Any help would be great.
Thanks
Comment #6
kmolkens commentedIn addition to the above information, we customized /sites/all/modules/uberpos/theme/uberpos-print-receipt.tpl.php as below.
/* TEXT OUTSIDE OF 'receipt' CLASS WILL NOT APPEAR IN RECEIPT *//* TEXT INSIDE WILL :) */If more info needed, just let me know,
Koen.
Comment #7
deggertsen commentedI only really see a few small changes from the default.
1. receipt date is commented out
2.
<h3>tag has been added around line items3. order ID has been commented out
What of those 3 changes actually helps in this issue? I could possibly see that
<h3>tags might somehow help, but I'm not sure how as there is no CSS defined to deal with those tags.Thanks for the response.
Comment #8
deggertsen commentedOk, so it seems that we have found the problem. It has something to do with the system expecting bar codes (the
tag) but no bar codes being loaded. So, because for now in our store we have no bar codes we needed to comment out a condition in the uberpos.js file. The commented out lines are 176 and 179.
It might be good to have a more permanent solution that doesn't require making this modification, but for now it appears to have fixed our problem.
Comment #9
kmolkens commented