We are building a KIOSK web based using Wordpress/Woocommerce for fastfood and small restaurant.
We have thermal printer connected to print a bill after checkout. Kiosk is running on android minipc chrome browser. We have found a app to connect printer to android pc and the test printing is working. Its connected by USB (this is the app and documentaion to it [login to view URL] ).
We have it already partially working. When I click PRINT it prints a test text.
what we need to do is to pass information like (orderID, Total, Items list etc. I will define it) to "var text" so it can be automatically printed out once order submition is done.
Basically this is the scope of work.
var text = "This is a TEST text of a bill<BR><MEDIUM1>MEDIUM TEXT<BR><CUT>";
var textEncoded = encodeURI(text);
window.location.href="intent://"+textEncoded+"#Intent;scheme=quickprinter;package=[login to view URL];end;";
Trigger of print: <a onclick="sendToQuickPrinter();">--- PRINT---</a>