@gunlok123 currently there is no option, since the focus is almost entirely on thermal printers these days, even in kitchens. But it is quite easy to add, as long as you are able to modify the order-handler.php part to adjust the template as you need?
Thanks @lawrenceowen
Yes, of course, I’m able to modify the file. What should I add to make it print the colour?
@gunlok123
Please add the following functions to “cloudprnt/printer_star_line.inc.php” and “cloudprnt/printer_star_prnt.inc.php”
public function set_text_highlight()
{
$this->printJobBuilder .= "1B34";
}
public function cancel_text_highlight()
{
$this->printJobBuilder .= "1B35";
}
And ideally, add empty functions with the same names to “cloudprnt/printer_text_plain.inc.php”. Really, you only really need to modify the first file, but modifying the others ensures that you won’t have a problem if you ever connect a different printer model.
You can then call $printer->set_text_highlight() and $printer->cancel_text_highlight() as needed from within the “order-handler.php” code. On printers with two colour printing support like your SP700, text will be printed as red, on other models it will be printed as reversed, white-on-black text.
Thank you @lawrenceowen
I’ll test it and let you know
@gunlok123 I’m assuming that all went well and marking this as resolved, but please let us know if you have any trouble.
As a convenience, the set_text_highlight() and cancel_text_highlight() are included in the base version of the plugin from 2.0.3 which was released yesterday.