@lewis-rowlands That mainly depends on how the plugin you use attaches its information to the order. In most cases, it will work although you may have to adjust our pugin if you require specific formatting of the output. I have tested the Delivery & Pickup Date Time for WooCommerce plugin and all seems to work ok.
These things do work a bit better with the new 2.0 plugin, but that doesn’t yet support printing to multiple devices, and it should print ok with the version you have.
Hi @lawrenceowen
Thanks for your help with this by the way. I have installed multiple delivery and pickup slot plugins and I purchased the pro version of the plugin you suggested.
Unfortunately, the receipts do not print ANY delivery slot dates or times from ANY plugin.
Any idea what’s going off there?
Many thanks
@lewis-rowlands I’m not sure which version of the Star plugin you are using, but please install the version 2.0 sample, and enable the “Print additional order meta-data, such as custom fields.” setting, and possibly the “Include hidden fields” option too.
Version 2.0 can be downloaded from this forum thread.
The 1.1.x and earlier versions of the Star plugin don’t support printing additional fields from external plugins, so you will need one of the pre-release sample versions, of which I recommend the 2.0 beta.
Hi Lawrence @lawrenceowen thanks your reply,
We may have an issue then because I am using the plugin you gave me to print multiple copies as we need them for front of house and for kitchen, does the new version handle multiple copies like the plugin you sent me to use?
@lewis-rowlands ah, of course, thanks for reminding me. No version 2.0 doesn’t yet implement that, I plan it as an official feature, but only after 2.0 is released and proven to be solid. 2.0 is intended to re-base the plugin code, so that I can more efficiently add new features and hopefully reduce the confusion of having so many sample and customised versions.
The multi-printer sample version that you have is based on 1.2 though, and should have a setting to enable printing additional order fields. Is that setting enabled for your site?
@lawrenceowen aaaaaah oh yes, brilliant, thanks for your help!!
@lewis-rowlands No problem, I hope it’s working ok now.
Version 2.0 does improve the additional order information printing a bit, reformatting the key names (e.g. “delivery_date” will print as “Delivery Date”), ignoring hidden fields by default, and allowing you to remove fields that you don’t want. So keep an eye out for multi-printer support being added officially, but obviously please hold-off upgrading until then.
One last question, If I am wanting to increase font size for the delivery dates/times where can I do that in the order-handler file?
@lewis-rowlands
In the version of the plugin you are using, that would be in a function named star_cloudprnt_create_receipt_order_meta_data().
For example, to print a field named “delivery_date” with a double size font:
Change this part:
$item_data = $meta_data_item->get_data();
$printer->add_text_line($item_data["key"].": ".$item_data["value"]);
To something like (warning, untested code, just an example):
$item_data = $meta_data_item->get_data();
if ($item_data["key"] == "delivery_date"){
$printer->set_font_magnification(2, 2);
$printer->add_text_line($item_data["key"].": ".$item_data["value"]);
$printer->set_font_magnification(1, 1);
} else {
$printer->add_text_line($item_data["key"].": ".$item_data["value"]);
}
Thanks mate much appreciated!!
@lawrenceowen
Thank you for all of your help with everything. Everything is working great with the exception of versions above 1.20 beta do not allow printing to multiple printers. Please enable the latest version to allow multi-printer support again.
Thanks again