Actually managed to get the drivers working correctly, had to restart and make sure it was the definitely the WinUSB getting set. Believe it wasn’t updating, so bit of trial and error that one.
Then tried a print on with some test JavaScript. That worked.
The printer then added successfully in the admin panel - all good.
Then when trying to print an order - I got a “Printer not connected message” from the admin panel.
Did some digging and dumped out the settings array in Printdocker.php
, and saw that $printer->printer_settings
was set correctly,
…however:
Within the if ($printer->printer_settings['usedefault'] == 1){
the line setting encoding ```$encoding = Settings::get(‘encoding’); `` was being set as null. The JavaScript wasn’t catching it (only a strict check on undefined) from what I could tell.
So as a quick test, commented the line out and set the encoding to $settings->encoding = 'windows-1252';
t, it now prints the orders. (It’s a wonderful sight when you see the actual thing print haha).
Just wondering where Settings::get('encoding')
is pulling from?