WooCommerce Print Invoice & Delivery Note - Version 4.7.1

Version Description

(07.12.2022) = * Fix :- Fix :- Removed the labels for shipping and billing address. This was added in 4.7.0, which is now reverted back.

Download this release

Release Info

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

Code changes from version 4.7.0 to 4.7.1

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.7.0';
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.7.1';
40
 
41
  /**
42
  * Plugin URL on current installation
readme.txt CHANGED
@@ -338,6 +338,9 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
338
 
339
  == Changelog ==
340
 
 
 
 
341
  = 4.7.0 (06.12.2022) =
342
  * Fix :- Logo was not showing on Android phone earlier. This is fixed now.
343
  * Fix :- Display labels for shipping and billing address
338
 
339
  == Changelog ==
340
 
341
+ = 4.7.1 (07.12.2022) =
342
+ * Fix :- Fix :- Removed the labels for shipping and billing address. This was added in 4.7.0, which is now reverted back.
343
+
344
  = 4.7.0 (06.12.2022) =
345
  * Fix :- Logo was not showing on Android phone earlier. This is fixed now.
346
  * Fix :- Display labels for shipping and billing address
templates/print-order/print-content.php CHANGED
@@ -40,17 +40,7 @@ if ( ! defined( 'ABSPATH' ) ) {
40
  if ( ! $order->get_formatted_billing_address() ) {
41
  esc_attr_e( 'N/A', 'woocommerce-delivery-notes' );
42
  } else {
43
- $country = $order->get_billing_country();
44
- $state = $order->get_billing_state();
45
- $full_name_state = WC()->countries->get_states( $country )[$state];
46
- $billing_address = 'Company : ' . $order->get_billing_company() . '<br>' .
47
- 'Name : ' . $order->get_formatted_billing_full_name() . '<br>' .
48
- 'Address 1: ' . $order->get_billing_address_1() .',<br>' .
49
- 'Address 2: ' . $order->get_billing_address_2() . ',<br>' .
50
- 'City: ' . $order->get_billing_city() . ' ' . $order->get_billing_postcode() .',<br>' .
51
- 'State: ' . $full_name_state . '.';
52
-
53
- echo wp_kses_post( apply_filters( 'wcdn_address_billing', $billing_address , $order ) );
54
  }
55
  ?>
56
 
@@ -65,17 +55,7 @@ if ( ! defined( 'ABSPATH' ) ) {
65
  if ( ! $order->get_formatted_shipping_address() ) {
66
  esc_attr_e( 'N/A', 'woocommerce-delivery-notes' );
67
  } else {
68
- $country = $order->get_shipping_country();
69
- $state = $order->get_shipping_state();
70
- $full_name_state = WC()->countries->get_states( $country )[$state];
71
- $shipping_address = 'Company : ' . $order->get_shipping_company() . '<br>' .
72
- 'Name : ' . $order->get_formatted_shipping_full_name() . '<br>' .
73
- 'Address 1: ' . $order->get_shipping_address_1() .',<br>' .
74
- 'Address 2: ' . $order->get_shipping_address_2() . ',<br>' .
75
- 'City: ' . $order->get_shipping_city() . ' ' . $order->get_shipping_postcode() .',<br>' .
76
- 'State: ' . $full_name_state . '.' ;
77
-
78
- echo wp_kses_post( apply_filters( 'wcdn_address_shipping', $shipping_address , $order ) );
79
  }
80
  ?>
81
 
40
  if ( ! $order->get_formatted_billing_address() ) {
41
  esc_attr_e( 'N/A', 'woocommerce-delivery-notes' );
42
  } else {
43
+ echo wp_kses_post( apply_filters( 'wcdn_address_billing', $order->get_formatted_billing_address(), $order ) );
 
 
 
 
 
 
 
 
 
 
44
  }
45
  ?>
46
 
55
  if ( ! $order->get_formatted_shipping_address() ) {
56
  esc_attr_e( 'N/A', 'woocommerce-delivery-notes' );
57
  } else {
58
+ echo wp_kses_post( apply_filters( 'wcdn_address_shipping', $order->get_formatted_shipping_address(), $order ) );
 
 
 
 
 
 
 
 
 
 
59
  }
60
  ?>
61
 
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.7.0
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.7.1
9
  * Author: Tyche Softwares
10
  * Author URI: https://www.tychesoftwares.com/
11
  * License: GPLv3 or later