WooCommerce PDF Invoices - Version 3.0.7

Version Description

  • June 11, 2019 =

  • Fixed: Packing slip not displaying custom meta and user meta fields.

Download this release

Release Info

Developer baaaaas
Plugin Icon 128x128 WooCommerce PDF Invoices
Version 3.0.7
Comparing to
See all releases

Code changes from version 3.0.6 to 3.0.7

bootstrap.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
5
  * Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
6
- * Version: 3.0.6
7
  * Author: Bas Elbers
8
  * Author URI: http://wcpdfinvoices.com
9
  * License: GPL-2.0+
@@ -16,7 +16,7 @@
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
- define( 'WPI_VERSION', '3.0.6' );
20
 
21
  /**
22
  * Load WooCommerce PDF Invoices plugin.
3
  * Plugin Name: WooCommerce PDF Invoices
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-pdf-invoices
5
  * Description: Automatically generate and attach customizable PDF Invoices to WooCommerce emails and connect with Dropbox, Google Drive, OneDrive or Egnyte.
6
+ * Version: 3.0.7
7
  * Author: Bas Elbers
8
  * Author URI: http://wcpdfinvoices.com
9
  * License: GPL-2.0+
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
+ define( 'WPI_VERSION', '3.0.7' );
20
 
21
  /**
22
  * Load WooCommerce PDF Invoices plugin.
includes/templates/packing-slip/simple/minimal/body.php CHANGED
@@ -15,13 +15,13 @@
15
  * @version 0.0.1
16
  */
17
 
18
- $templater = WPI()->templater();
19
- $order = $templater->order;
20
- $document = $templater->packing_slip;
21
- $formatted_shipping_address = $order->get_formatted_shipping_address();
22
- $formatted_billing_address = $order->get_formatted_billing_address();
23
- $line_items = $order->get_items( 'line_item' );
24
- $color = $templater->get_option( 'bewpi_color_theme' );
25
  ?>
26
 
27
  <table>
@@ -33,7 +33,7 @@ $color = $templater->get_option( 'bewpi_color_theme' );
33
  <tr class="information">
34
  <td width="50%">
35
  <?php
36
- printf( __( 'Order Date: %s', 'woocommerce-pdf-invoices' ), $document->get_formatted_order_date() );
37
  printf( '<br />' );
38
  printf( __( 'Order Number: %s', 'woocommerce-pdf-invoices' ), $order->get_order_number() );
39
 
@@ -56,7 +56,7 @@ $color = $templater->get_option( 'bewpi_color_theme' );
56
  printf( '<strong>%s</strong><br />', __( 'Bill to:', 'woocommerce-pdf-invoices' ) );
57
  echo $formatted_billing_address;
58
 
59
- do_action( 'wpi_after_formatted_billing_address', $invoice );
60
  ?>
61
  </td>
62
 
@@ -65,26 +65,26 @@ $color = $templater->get_option( 'bewpi_color_theme' );
65
  printf( '<strong>%s</strong><br />', __( 'Ship to:', 'woocommerce-pdf-invoices' ) );
66
  echo $formatted_shipping_address;
67
 
68
- do_action( 'wpi_after_formatted_shipping_address', $invoice );
69
  ?>
70
  </td>
71
  </tr>
72
  </table>
73
  <table>
74
  <thead>
75
- <tr class="heading" bgcolor="<?php echo $color; ?>;">
76
- <th>
77
- <?php _e( 'SKU', 'woocommerce-pdf-invoices' ); ?>
78
- </th>
79
-
80
- <th>
81
- <?php _e( 'Product', 'woocommerce-pdf-invoices' ); ?>
82
- </th>
83
-
84
- <th>
85
- <?php _e( 'Qty', 'woocommerce-pdf-invoices' ); ?>
86
- </th>
87
- </tr>
88
  </thead>
89
  <tbody>
90
  <?php
15
  * @version 0.0.1
16
  */
17
 
18
+ $templater = WPI()->templater();
19
+ $order = $templater->order;
20
+ $packing_slip = $templater->packing_slip;
21
+ $formatted_shipping_address = $order->get_formatted_shipping_address();
22
+ $formatted_billing_address = $order->get_formatted_billing_address();
23
+ $line_items = $order->get_items( 'line_item' );
24
+ $color = $templater->get_option( 'bewpi_color_theme' );
25
  ?>
26
 
27
  <table>
33
  <tr class="information">
34
  <td width="50%">
35
  <?php
36
+ printf( __( 'Order Date: %s', 'woocommerce-pdf-invoices' ), $packing_slip->get_formatted_order_date() );
37
  printf( '<br />' );
38
  printf( __( 'Order Number: %s', 'woocommerce-pdf-invoices' ), $order->get_order_number() );
39
 
56
  printf( '<strong>%s</strong><br />', __( 'Bill to:', 'woocommerce-pdf-invoices' ) );
57
  echo $formatted_billing_address;
58
 
59
+ do_action( 'wpi_after_formatted_billing_address', $packing_slip );
60
  ?>
61
  </td>
62
 
65
  printf( '<strong>%s</strong><br />', __( 'Ship to:', 'woocommerce-pdf-invoices' ) );
66
  echo $formatted_shipping_address;
67
 
68
+ do_action( 'wpi_after_formatted_shipping_address', $packing_slip );
69
  ?>
70
  </td>
71
  </tr>
72
  </table>
73
  <table>
74
  <thead>
75
+ <tr class="heading" bgcolor="<?php echo $color; ?>;">
76
+ <th>
77
+ <?php _e( 'SKU', 'woocommerce-pdf-invoices' ); ?>
78
+ </th>
79
+
80
+ <th>
81
+ <?php _e( 'Product', 'woocommerce-pdf-invoices' ); ?>
82
+ </th>
83
+
84
+ <th>
85
+ <?php _e( 'Qty', 'woocommerce-pdf-invoices' ); ?>
86
+ </th>
87
+ </tr>
88
  </thead>
89
  <tbody>
90
  <?php
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
- Stable tag: 3.0.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -344,9 +344,13 @@ Since version 2.9.4 the plugin removed the ability to update the PDF invoice whe
344
 
345
  == Changelog ==
346
 
 
 
 
 
347
  = 3.0.6 - June 7, 2019 =
348
 
349
- -IImproved: Sequential invoice numbering by refactoring code.
350
 
351
  = 3.0.5 - May 31, 2019 =
352
 
4
  Tags: woocommerce pdf invoices, invoice, packing slips, delivery note, packing list, shipping list, generate, pdf, woocommerce, attachment, email, customer invoice, processing, vat, tax, sequential, number, dropbox, google drive, onedrive, egnyte, cloud, storage
5
  Requires at least: 4.0
6
  Tested up to: 5.2
7
+ Stable tag: 3.0.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
344
 
345
  == Changelog ==
346
 
347
+ = 3.0.7 - June 11, 2019 =
348
+
349
+ - Fixed: Packing slip not displaying custom meta and user meta fields.
350
+
351
  = 3.0.6 - June 7, 2019 =
352
 
353
+ - Improved: Sequential invoice numbering by refactoring code.
354
 
355
  = 3.0.5 - May 31, 2019 =
356