WooCommerce PDF Invoices & Packing Slips - Version 1.6.4

Version Description

  • Fix: My account invoice button visibility
Download this release

Release Info

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

Code changes from version 1.6.3 to 1.6.4

includes/class-wcpdf-writepanels.php CHANGED
@@ -188,7 +188,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
188
  if (isset($this->general_settings['my_account_buttons'])) {
189
  switch ($this->general_settings['my_account_buttons']) {
190
  case 'available':
191
- $invoice_allowed = WCX_Order::get_meta( $order, 'wcpdf_invoice_exists', true );
192
  break;
193
  case 'always':
194
  $invoice_allowed = true;
@@ -206,7 +206,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
206
  }
207
  } else {
208
  // backwards compatibility
209
- $invoice_allowed = WCX_Order::get_meta( $order, 'wcpdf_invoice_exists', true );
210
  }
211
 
212
  // Check if invoice has been created already or if status allows download (filter your own array of allowed statuses)
188
  if (isset($this->general_settings['my_account_buttons'])) {
189
  switch ($this->general_settings['my_account_buttons']) {
190
  case 'available':
191
+ $invoice_allowed = WCX_Order::get_meta( $order, '_wcpdf_invoice_exists', true );
192
  break;
193
  case 'always':
194
  $invoice_allowed = true;
206
  }
207
  } else {
208
  // backwards compatibility
209
+ $invoice_allowed = WCX_Order::get_meta( $order, '_wcpdf_invoice_exists', true );
210
  }
211
 
212
  // Check if invoice has been created already or if status allows download (filter your own array of allowed statuses)
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
3
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
4
  Requires at least: 3.5
5
  Tested up to: 4.7
6
- Stable tag: 1.6.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -99,6 +99,9 @@ There's a setting on the Status tab of the settings page that allows you to togg
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 1.6.3 =
103
  * Fix: Empty date handling
104
  * Fix: Shipping notes on refunds (reason for refund)
@@ -532,5 +535,5 @@ There's a setting on the Status tab of the settings page that allows you to togg
532
 
533
  == Upgrade Notice ==
534
 
535
- = 1.6.3 =
536
  Important: Version 1.6 requires PHP 5.3 or higher to run!
3
  Tags: woocommerce, pdf, invoices, packing slips, print, delivery notes, invoice, packing slip, export, email, bulk, automatic
4
  Requires at least: 3.5
5
  Tested up to: 4.7
6
+ Stable tag: 1.6.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.6.4 =
103
+ * Fix: My account invoice button visibility
104
+
105
  = 1.6.3 =
106
  * Fix: Empty date handling
107
  * Fix: Shipping notes on refunds (reason for refund)
535
 
536
  == Upgrade Notice ==
537
 
538
+ = 1.6.4 =
539
  Important: Version 1.6 requires PHP 5.3 or higher to run!
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: 1.6.3
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -48,7 +48,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
48
  self::$plugin_basename = plugin_basename(__FILE__);
49
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
50
  self::$plugin_path = trailingslashit(dirname(__FILE__));
51
- self::$version = '1.6.3';
52
 
53
  // load the localisation & classes
54
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?
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: 1.6.4
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
48
  self::$plugin_basename = plugin_basename(__FILE__);
49
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
50
  self::$plugin_path = trailingslashit(dirname(__FILE__));
51
+ self::$version = '1.6.4';
52
 
53
  // load the localisation & classes
54
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?