Plugin changelog

1.7.0 – 2021-03-09

  • FEATURE: Integrates with WooCommerce Germanized Pro: can print the invoices created by that plugin
  • TWEAK: (Incompatible change: requires action if you were using it via a coding customisation). The redundant parameter $order_id is no longer passed either to the output function for any customised sources you had created nor the filter woocommerce_printorders_printnode_document (and thus the order of parameters has changed), nor is it defined in the simple summary template (if you need it, define it with “$order_id = $order->get_id();”).
  • TWEAK: The filter woocommerce_print_orders_printnode_schedule_event_when can now be used to decline to schedule an event (via returning boolean false)
  • TWEAK: Update the DomPDF library to the 1.0 series for PHP 8 compatibility
  • TWEAK: Add $document_type, $printer_id, $title parameters to the woocommerce_printorders_printnode_printing_job_options filter
  • TWEAK: Provide a more precise error message when no API key has yet been entered
  • TWEAK: Correct the i18n domain in some __() etc. calls

1.6.5 – 2021-02-02

  • FIX: Use payment_gateways() and check the ‘enabled’ attribute instead of using get_available_payment_gateways() to get a list of all enabled gateways when building settings
  • TWEAK: Remove unnecessary check for WC >= 3.0 in simple summary templates

1.6.4 – 2021-01-02

  • TWEAK: Update the notice in response to a 401 response code to cover more situations
  • TWEAK: Update bundled updater library to latest release
  • TWEAK: Update AutomateWoo support for 5.1+
  • TWEAK: Update some obsolete jQuery syntax styles

1.6.3 – 2020-12-16

  • TWEAK: When a PrintNode operation returns an HTTP error on the settings page, handle this better by displaying the information and not aborting.

1.6.2 – 2020-12-15

  • FEATURE: Expose the PrintNode “fit to page” option in the plugin settings
  • FIX: Individual printer options set weren’t being passed through to the final API call

1.6.1 – 2020-11-28

  • FEATURE: Allowing deleting of active jobs from the PrintNode queue in the ‘Print jobs’ tab
  • TWEAK: Replace obsolete jQuery.parseJSON() with JSON.parse()
  • TWEAK: Add clarifying text on the ‘Printers’ and ‘Print jobs’ tabs if PrintNode rejects the configured API key as invalid

1.6.0 – 2020-11-14

  • FEATURE: Provide a “job” tab, allowing viewing of PrintNode queue state (without having to go to the PrintNode website)

1.5.1 – 2020-11-03

  • FEATURE: Provide settings for controlling when to print based upon order status transitions (e.g. when an order moves from “Processing” to “Completed”) in the plugin settings (i.e. using a filter is no longer required)
  • TWEAK: Update jQuery document ready style to the one not deprecated in jQuery 3.0
  • TWEAK: Update the bundled updater libraries
  • TWEAK: When the server PHP version is too low, or too low for DomPDF, advise the user of what action to take (upgrade PHP, or install the mPDF add-on)

1.5.0 – 2020-10-29

  • FEATURE: Provide settings for controlling when to print for different payment methods (e.g. when an order is placed for cash-on-delivery, but only when it is paid for credit card) in the plugin settings (i.e. using a filter is no longer required)
  • FIX: A logic error when printing different templates to different printers could result in extra unwanted copies
  • TWEAK: When adding an order note and using default settings, still include the used printers.
  • TWEAK: When adding an order note, indicate the printer by its name rather than internal ID.
  • TWEAK: Rename the label “print to this printer” as “enable this printer”, to clarify its role as a master-switch for the printer.

1.4.0 – 2020-10-28

  • FEATURE: Add support for producing the internal PDF via the mPDF engine, in conjunction with – useful for RTL languages
  • TWEAK: Prevent an unwanted PHP coding notice when debugging template output in 1.3.0
  • TWEAK: For consistency, rename the filter woocommerce_print_orders_printnode_html_to_pdf_dompdf_options to woocommerce_printorders_printnode_html_to_pdf_dompdf_options

1.3.0 – 2020-10-16

  • FEATURE: Meta-box on order page now allows retrieval of both HTML and PDF for internal simple summary and PDF for all sources
  • TWEAK: Make the facility to show the internal output for an order always available (not just when there are configured print destinations)
  • TWEAK: Change the method used to replace redundant hyperlinks inside PDF documents
  • TWEAK: Update the bundled updater libraries to current versions

1.2.1 – 2020-09-24

  • TWEAK: Include a facility for seeing the raw printer information from PrintNode

1.2.0 – 2020/09/22

  • FEATURE: Provide a user-interface to allow each print source to be sent to different printers different numbers of times

1.1.1 – 2020/09/16

  • FEATURE: Add “print via PrintNode” action to the bulk action menu on the WooCommerce order list
  • TWEAK: Replace deprecated method call WC_Order::get_product_from_item()
  • TWEAK: Check that get_product() called on an item returns something before further processing it

1.0.7 – 2020/09/11

  • TWEAK: Add an extra parameter to schedule_event() so that more information on context can be logged
  • TWEAK: Update DomPDF to version 0.8.6
  • TWEAK: For consistency, the filter woocommerce_print_orders_printnode_via_cron has been renamed to woocommerce_printorders_printnode_via_cron
  • TWEAK: Call wp-cron.php on the WooCommerce ‘thank you’ page to help WP’s scheduler

1.0.6 – 2020/09/04

  • FEATURE: Provide a setting for the internally-generated ‘simple summary’ template allowing application of a zero margin on the PDF pages.
  • FIX: When a PrintNode printer provided no options, the WooCommerce order screen treated it as not yet set up
  • TWEAK: Update the bundled updater libraries to current versions

1.0.5 – 2020/08/05

  • TWEAK: Display the message “this printer does not have any configurable options” when an empty list is returned, not just no list.
  • TWEAK: Fix an incorrect call to printf() in the internal template
  • TWEAK: Add a filter woocommerce_print_orders_printnode_schedule_event_when to allow the time at which an event is scheduled to be modified (e.g. decide to print based on a time chosen in the order rather than when the order is placed).
  • TWEAK: Mark as supporting WP 5.5 (requires 4.5+; nothing has been done to remove compatibility with WP 4.4, but this is now the official support requirement)

1.0.4 – 2020/06/29

  • FEATURE: Shortly after sending a print job to PrintNode, the job status is now checked and logged to aid debugging
  • FIX: Version 1.0.2 introduced a regression in the handling of extra options for the “simple” template
  • FIX: The filter woocommerce_printnode_printnode_print_on_payment_complete was mis-named in our initial releases, and is now woocommerce_printorders_printnode_print_on_payment_complete; if you were using it, you will need to tweak it in your code.

1.0.2 – 2020/06/26

  • FIX: Fix some faulty code that inhibited printing upon order placement
  • TWEAK: Mark as compatible with WooCommerce 4.3
  • TWEAK: Update bundled updater library to latest version (1.8.5)
  • TWEAK: Provide the filter woocommerce_printorders_printnode_sources to allow external provision of sources

1.0.0 – 2020/06/18

  • RELEASE: First version