WooCommerce PDF Invoices & Packing Slips - Version 2.0.0

Version Description

  • BIG update! Make a full site backup before upgrading
  • New: Better structured & more advanced settings for documents
  • New: Option to enable & disable Packing Slips or Invoices
  • New: Invoice number sequence stored separately for improved speed & performance
  • New: Completely rewritten codebase for more flexibility & better reliability
  • New: Updated PDF library to DOMPDF 0.8
  • New: PDF Library made pluggable (by using the wpo_wcpdf_pdf_maker filter)
  • New: lots of new functions & filters to allow developers to hook into the plugin
  • Changed: $wpo_wcpdf variable is now deprecated (legacy mode available & automatically enabled on update)
  • Fix: Improved PHP 7 & 7.1 support
  • Fix: Positive prices for refunds
  • Fix: Use parent for attributes retrieved for product variations
  • Fix: Set content type to PDF for download
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 2.0.0
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.0

includes/documents/abstract-wcpdf-order-document.php CHANGED
@@ -326,12 +326,7 @@ abstract class Order_Document {
326
 
327
  public function set_number( $value, $order = null ) {
328
  $order = empty( $order ) ? $this->order : $order;
329
-
330
- if ( is_array( $value ) ) {
331
- $filtered_value = array_filter( $value );
332
- }
333
-
334
- if ( empty( $value ) || ( is_array( $value ) && empty( $filtered_value ) ) ) {
335
  $document_number = null;
336
  } elseif ( is_array( $value ) ) {
337
  // WCPDF 2.0 number data
326
 
327
  public function set_number( $value, $order = null ) {
328
  $order = empty( $order ) ? $this->order : $order;
329
+ if ( empty( $value ) || ( is_array( $value ) && empty( array_filter ( $value ) ) ) ) {
 
 
 
 
 
330
  $document_number = null;
331
  } elseif ( is_array( $value ) ) {
332
  // WCPDF 2.0 number data
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-
4
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
5
  Requires at least: 3.5
6
  Tested up to: 4.8
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -100,7 +100,7 @@ There's a setting on the Status tab of the settings page that allows you to togg
100
 
101
  == Changelog ==
102
 
103
- = 2.0.1 =
104
  * **BIG update! Make a full site backup before upgrading**
105
  * New: Better structured & more advanced settings for documents
106
  * New: Option to enable & disable Packing Slips or Invoices
@@ -114,7 +114,6 @@ There's a setting on the Status tab of the settings page that allows you to togg
114
  * Fix: Positive prices for refunds
115
  * Fix: Use parent for attributes retrieved for product variations
116
  * Fix: Set content type to PDF for download
117
- * Fix: PHP 5.4 issue
118
 
119
  = 1.6.6 =
120
  * Feature: Facilitate downgrading from 2.0 (re-installing fonts & resetting version)
@@ -561,7 +560,7 @@ There's a setting on the Status tab of the settings page that allows you to togg
561
 
562
  == Upgrade Notice ==
563
 
564
- = 2.0.1 =
565
  **2.0 is a BIG update! Make a full site backup before upgrading!**
566
 
567
  = 1.6.6 =
4
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
5
  Requires at least: 3.5
6
  Tested up to: 4.8
7
+ Stable tag: 2.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.0.0 =
104
  * **BIG update! Make a full site backup before upgrading**
105
  * New: Better structured & more advanced settings for documents
106
  * New: Option to enable & disable Packing Slips or Invoices
114
  * Fix: Positive prices for refunds
115
  * Fix: Use parent for attributes retrieved for product variations
116
  * Fix: Set content type to PDF for download
 
117
 
118
  = 1.6.6 =
119
  * Feature: Facilitate downgrading from 2.0 (re-installing fonts & resetting version)
560
 
561
  == Upgrade Notice ==
562
 
563
+ = 2.0 =
564
  **2.0 is a BIG update! Make a full site backup before upgrading!**
565
 
566
  = 1.6.6 =
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 2.0.1
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -19,7 +19,7 @@ if ( !class_exists( 'WPO_WCPDF' ) ) :
19
 
20
  class WPO_WCPDF {
21
 
22
- public $version = '2.0.1';
23
  public $plugin_basename;
24
  public $legacy_mode;
25
 
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 2.0.0
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
19
 
20
  class WPO_WCPDF {
21
 
22
+ public $version = '2.0.0';
23
  public $plugin_basename;
24
  public $legacy_mode;
25