• Resolved nirmalnair

    (@nirmalnair)


    Hello,

    We have been using the plugin alongside star tsp654ii printer.

    1. By default we only get 1 copy of the receipt printed out .how do we get multiple copies.?

    2. We wanted to get same receipt printed at another location as well could we do that.? eg. Right now the printer is placed at billing section. We would like to get another printer placed and configured in kitchen section to automatically generate receipts whenever a woocommerce order is processing.

    I did see earlier topic where certain updated version of the plugin was shared , however those links seem to be expired, hence would appreciate your help on this matter.

    Thankyou so much for your assistance.

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Contributor lawrenceowen

    (@lawrenceowen)

    Hi @nirmalnair

    It’s good to hear that the solution is working for you ??

    You can install the sample version from here which includes multi-copy support. This link will remain available at least until the end of December. I hope to roll out an official update before that.

    Please keep in mind one potential issue. This new plugin version switches the printing trigger from the WooCommerce “ThankYou” action hook, to the order status changing to “Processing”. It is much more reliable (in some cases the “ThankYou” action doesn’t occur), but if your site uses different status for new orders then the updated plugin will not work. This is why I have been holding off an official release.

    Supporting multiple printer targets is a much requested feature recently, and I am working on it this week. Unfortunately the current plugin was completely designed around printing to a single device so there is a bit of work needed to keep it reliable. If you are based in the EU though then you can contact our EMEA office for an alternative integration method that will support multiple printers.

    Hello @lawrenceowen,

    We are in the US and just purchased four mc-print3’s. We need the orders, all printed to the four printers instead of just one. Is there an alternate configuration, etc., that we can implement.

    Thank you, we greatly appreciate any help that you can offer.

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @marketwho You may want to test this recent sample version, which supports output to any number of printers (the same output will be sent to each).

    Please note that this is a very early sample, I can not make any reliability promises, although you are free to use it if it works ok for you. There is also a potential security concern which you should consider. Details are included on the linked page (the link will remain available until the end of December).

    I cover our EMEA sales region, so have let the US office know about your request.

    Hello,

    This is in reference to the sample plugin you sent @marketwho. I installed the sample plugin and it’s only showing 1 printer and nowhere to add additional printers.

    It also shows that the plugin was last updated 8 months ago which seems to be the old plugin.

    We look forward to your response.

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @marketwho2 My guess is that your plugin didn’t update and you still have the WordPress repository version. Try un-installing the plugin first before re-installing from the zip file at the above link.

    Just a few points:

    • This is a quickly modified sample – there are no visible user interface/settings changes.
    • Adding a new printer is done simply by adding the CloudPRNT Server URL for your site to new printers (as you will have done for the first).
    • Printers are still shown in a drop-down list on the user interface, but this sample version will print to all printers, instead of just the selected one.
    Andi

    (@shiro_hagen)

    Hi,

    I’ve tried the multiple copies/single printer version, and I’ve had orders reprint hours after being placed (it’s happened a few times, seemingly at random, and I haven’t been able to replicate the steps to force it to do this yet).

    Has anyone else had this issue?

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @shiro_hagen

    Generally, orders printing very late is a side-effect that can only affect the base version of the Plugin provided via the WordPress repository. It happens, because print jobs are created when WooCommerce used the “ThankYou” hook which is used to generate the final “Thank you for your order” message after an end-customer places an order on your site.

    It is possible that, when a user places an order, they close their laptop very quickly, before the “Thank You” message is displayed. When they open their laptop again, then the page will be loaded and displayed, which also causes the print job to be generated.

    All sample versions made available this year use a different WooCommerce hook to generate print jobs (when an order is assigned the “Processing” status) to avoid this.

    Andi

    (@shiro_hagen)

    Thanks for the reply @lawrenceowen , I’ll check if some files weren’t replaced when I updated manually.

    @lawrenceowen I need to have the system print to 2 different printers, I wasn’t aware that the plugin didn’t do this. The plugin which prints to multiple printers has expired. Can you send it to me please? [email protected]

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @lewis-rowlands

    No problem, this download link will be live for two weeks.
    I am reluctant to keep the share up for longer because this is quite an experimental modification, and the features will be rolled in to an official and more thoroughly tested version before too long.

    @lawrenceowen thankyou soooooo much man, i was pulling my hair out over this lmao!

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @lewis-rowlands no worries, sorry for the frustration.
    Hopefully this can be included as a feature in the standard version fairly soon.

    @lawrenceowen thanks. How can I edit the receipt. I tried to edit the order-handler.php but cant seam to find the section i need.

    For example I want to remove the product ID, and also most of my products have variations with the attribute ‘please choose’, I want to remove the ‘please choose’ from the receipt.Is that possible? Thanks

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    @lewis-rowlands

    Both of those should be easy enough to change. The line numbers below should be correct for the version of the plugin you are using, apologies if they are a little off. Both changes would be in the function names star_cloudprnt_create_receipt_items() (starting at line 144).

    To remove the ID from the item line, change line 174 from:
    $printer->add_text_line(filterHTML($product_name." - ID: ".$product_id.""));
    to:
    $printer->add_text_line(filterHTML($product_name));

    To modify the variation and add-ons printing, you need to modify the loop at the section of code from line 178. I’m not sure of exactly the change you want so can’t give the exact code, but some examples:

    $meta = $item_data->get_formatted_meta_data("_", TRUE);
    foreach ($meta as $meta_key => $meta_item)
    {
    	// Don't use display_key and display_value, because those are formatted as html
    	$printer->add_text_line(filterHTML(" ".$meta_item->key.": ".$meta_item->value));
    }

    If you want to just not print the variation key names, then try modifying it to:

    $meta = $item_data->get_formatted_meta_data("_", TRUE);
    foreach ($meta as $meta_key => $meta_item)
    {
    	$printer->add_text_line(filterHTML(" ".$meta_item->value));
    }

    or, if you want to completely hide the variation when the value is “please choose”:

    $meta = $item_data->get_formatted_meta_data("_", TRUE);
    foreach ($meta as $meta_key => $meta_item)
    {
    	if($meta_item->value == "please choose")
    		continue;
    	$printer->add_text_line(filterHTML(" ".$meta_item->key.": ".$meta_item->value));
    }

    Thanks,

    Last question.

    We run a takeaway and thinking about implementing booking slots. If we installed a woocommerce booking slots plugin would the booking slot show on the receipt or would we need extra development by someone?

    Thanks

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Multiple Copies & 2 Printers’ is closed to new replies.