WooCommerce PDF Invoices & Packing Slips - Version 1.5.34

Version Description

  • Fix: Document check that was introduced in 1.5.33 for disable free setting
Download this release

Release Info

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

Code changes from version 1.5.33 to 1.5.34

includes/class-wcpdf-export.php CHANGED
@@ -561,12 +561,6 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
561
  return $attachments;
562
  }
563
 
564
- // Disable free setting check
565
- $order_total = $order->get_total();
566
- if ( $order_total == 0 && isset($this->general_settings['disable_free']) && $template_type != 'packing-slip' ) {
567
- return $attachments;
568
- }
569
-
570
  $this->order = $order;
571
 
572
  $tmp_path = $this->tmp_path('attachments');
@@ -596,6 +590,12 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
596
  continue;
597
  }
598
 
 
 
 
 
 
 
599
  // use this filter to add an extra condition - return false to disable the PDF attachment
600
  $attach_document = apply_filters('wpo_wcpdf_custom_attachment_condition', true, $order, $status, $template_type );
601
  if( in_array( $status, $allowed_statuses ) && $attach_document ) {
561
  return $attachments;
562
  }
563
 
 
 
 
 
 
 
564
  $this->order = $order;
565
 
566
  $tmp_path = $this->tmp_path('attachments');
590
  continue;
591
  }
592
 
593
+ // Disable free setting check
594
+ $order_total = $order->get_total();
595
+ if ( $order_total == 0 && isset($this->general_settings['disable_free']) && $template_type != 'packing-slip' ) {
596
+ continue;
597
+ }
598
+
599
  // use this filter to add an extra condition - return false to disable the PDF attachment
600
  $attach_document = apply_filters('wpo_wcpdf_custom_attachment_condition', true, $order, $status, $template_type );
601
  if( in_array( $status, $allowed_statuses ) && $attach_document ) {
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.5
6
- Stable tag: 1.5.33
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -235,6 +235,9 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
235
 
236
  == Changelog ==
237
 
 
 
 
238
  = 1.5.33 =
239
  * Tweak: Don't apply 'disable free' setting to packing slip attachment
240
  * Translations: Updated Romanian
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.5
6
+ Stable tag: 1.5.34
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
235
 
236
  == Changelog ==
237
 
238
+ = 1.5.34 =
239
+ * Fix: Document check that was introduced in 1.5.33 for disable free setting
240
+
241
  = 1.5.33 =
242
  * Tweak: Don't apply 'disable free' setting to packing slip attachment
243
  * Translations: Updated Romanian
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.5.33
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -33,7 +33,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
33
  self::$plugin_basename = plugin_basename(__FILE__);
34
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
35
  self::$plugin_path = trailingslashit(dirname(__FILE__));
36
- self::$version = '1.5.33';
37
 
38
  // load the localisation & classes
39
  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.5.34
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
33
  self::$plugin_basename = plugin_basename(__FILE__);
34
  self::$plugin_url = plugin_dir_url(self::$plugin_basename);
35
  self::$plugin_path = trailingslashit(dirname(__FILE__));
36
+ self::$version = '1.5.34';
37
 
38
  // load the localisation & classes
39
  add_action( 'plugins_loaded', array( $this, 'translations' ) ); // or use init?