WooCommerce Print Invoice & Delivery Note - Version 4.6.4

Version Description

(21.07.2021) = * Fix :- After updating to v4.6.3 , fatal error was coming in some sites where the invoice template has been customized by copying print-content.php file in the theme folder. This is fixed now.

Download this release

Release Info

Developer tychesoftwares
Plugin Icon 128x128 WooCommerce Print Invoice & Delivery Note
Version 4.6.4
Comparing to
See all releases

Code changes from version 4.6.3 to 4.6.4

includes/class-woocommerce-delivery-notes.php CHANGED
@@ -36,7 +36,7 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes' ) ) {
36
  *
37
  * @var string $plugin_version Current plugin version number
38
  */
39
- public static $plugin_version = '4.6.3';
40
 
41
  /**
42
  * Plugin URL on current installation
36
  *
37
  * @var string $plugin_version Current plugin version number
38
  */
39
+ public static $plugin_version = '4.6.4';
40
 
41
  /**
42
  * Plugin URL on current installation
includes/wcdn-template-functions.php CHANGED
@@ -353,6 +353,17 @@ function wcdn_additional_product_fields( $fields, $product, $order ) {
353
  return array_merge( $fields, $new_fields );
354
  }
355
 
 
 
 
 
 
 
 
 
 
 
 
356
  /**
357
  * Check if an order contains a refund
358
  *
353
  return array_merge( $fields, $new_fields );
354
  }
355
 
356
+ /**
357
+ * Check if a shipping address is enabled
358
+ * Note: In v4.6.3, we have removed this function but it throws the fatal error on printing the invoice if someone have customized the invoice and copied print-content.php file in thier theme so from v4.6.4 we need to keep this function as blank and returning true value to avoid errors when function is called.
359
+ *
360
+ * @param object $order Order object.
361
+ * @return boolean true
362
+ */
363
+ function wcdn_has_shipping_address( $order ) {
364
+ return true;
365
+ }
366
+
367
  /**
368
  * Check if an order contains a refund
369
  *
readme.txt CHANGED
@@ -338,6 +338,9 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
338
 
339
  == Changelog ==
340
 
 
 
 
341
  = 4.6.3 (19.07.2021) =
342
  * Fix :- Fixed the errors coming with PHP 8.
343
  * Fix :- Shipping address was not printed in invoice when the order is created manually. This is fixed now.
338
 
339
  == Changelog ==
340
 
341
+ = 4.6.4 (21.07.2021) =
342
+ * Fix :- After updating to v4.6.3 , fatal error was coming in some sites where the invoice template has been customized by copying print-content.php file in the theme folder. This is fixed now.
343
+
344
  = 4.6.3 (19.07.2021) =
345
  * Fix :- Fixed the errors coming with PHP 8.
346
  * Fix :- Shipping address was not printed in invoice when the order is created manually. This is fixed now.
woocommerce-delivery-notes.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Print Invoice & Delivery Notes for WooCommerce
6
  * Plugin URI: https://www.tychesoftwares.com/
7
  * Description: Print Invoices & Delivery Notes for WooCommerce Orders.
8
- * Version: 4.6.3
9
  * Author: Tyche Softwares
10
  * Author URI: https://www.tychesoftwares.com/
11
  * License: GPLv3 or later
5
  * Plugin Name: Print Invoice & Delivery Notes for WooCommerce
6
  * Plugin URI: https://www.tychesoftwares.com/
7
  * Description: Print Invoices & Delivery Notes for WooCommerce Orders.
8
+ * Version: 4.6.4
9
  * Author: Tyche Softwares
10
  * Author URI: https://www.tychesoftwares.com/
11
  * License: GPLv3 or later