WooCommerce PDF Invoices - Version 3.0.11

Version Description

  • November 8, 2019 =

  • Added: Company registration number.

Download this release

Release Info

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

Code changes from version 3.0.10 to 3.0.11

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.10
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.10' );
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.11
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.11' );
20
 
21
  /**
22
  * Load WooCommerce PDF Invoices plugin.
includes/admin/settings/class-template.php CHANGED
@@ -268,6 +268,17 @@ class BEWPI_Template_Settings extends BEWPI_Abstract_Settings {
268
  'desc' => '',
269
  'default' => '',
270
  ),
 
 
 
 
 
 
 
 
 
 
 
271
  array(
272
  'id' => 'bewpi-company-vat-id',
273
  'name' => $this->prefix . 'company_vat_id',
268
  'desc' => '',
269
  'default' => '',
270
  ),
271
+ array(
272
+ 'id' => 'bewpi-company-registration-number',
273
+ 'name' => $this->prefix . 'company_registration_number',
274
+ 'title' => __( 'Company Registration Number', 'woocommerce-pdf-invoices' ),
275
+ 'callback' => array( $this, 'input_callback' ),
276
+ 'page' => $this->settings_key,
277
+ 'section' => 'header',
278
+ 'type' => 'text',
279
+ 'desc' => '',
280
+ 'default' => '',
281
+ ),
282
  array(
283
  'id' => 'bewpi-company-vat-id',
284
  'name' => $this->prefix . 'company_vat_id',
includes/woocommerce-pdf-invoices.php CHANGED
@@ -1080,9 +1080,10 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
1080
  * @return string
1081
  */
1082
  public function get_formatted_company_address() {
1083
- $company_phone = self::get_option( 'template', 'company_phone' );
1084
- $company_email_address = self::get_option( 'template', 'company_email_address' );
1085
- $company_vat_id = self::get_option( 'template', 'company_vat_id' );
 
1086
 
1087
  if ( BEWPI_WC_Core_Compatibility::is_wc_version_gte_3_0() ) {
1088
  $formatted_company_address = self::get_formatted_base_address();
@@ -1098,6 +1099,10 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
1098
  $formatted_company_address .= sprintf( __( 'Email: %s', 'woocommerce-pdf-invoices' ), $company_email_address ) . '<br>';
1099
  }
1100
 
 
 
 
 
1101
  if ( ! empty( $company_vat_id ) ) {
1102
  $formatted_company_address .= sprintf( __( 'VAT ID: %s', 'woocommerce-pdf-invoices' ), $company_vat_id );
1103
  }
1080
  * @return string
1081
  */
1082
  public function get_formatted_company_address() {
1083
+ $company_phone = self::get_option( 'template', 'company_phone' );
1084
+ $company_email_address = self::get_option( 'template', 'company_email_address' );
1085
+ $company_registration_number = self::get_option( 'template', 'company_registration_number' );
1086
+ $company_vat_id = self::get_option( 'template', 'company_vat_id' );
1087
 
1088
  if ( BEWPI_WC_Core_Compatibility::is_wc_version_gte_3_0() ) {
1089
  $formatted_company_address = self::get_formatted_base_address();
1099
  $formatted_company_address .= sprintf( __( 'Email: %s', 'woocommerce-pdf-invoices' ), $company_email_address ) . '<br>';
1100
  }
1101
 
1102
+ if ( ! empty( $company_registration_number ) ) {
1103
+ $formatted_company_address .= sprintf( __( 'CRN: %s', 'woocommerce-pdf-invoices' ), $company_registration_number ) . '<br>';
1104
+ }
1105
+
1106
  if ( ! empty( $company_vat_id ) ) {
1107
  $formatted_company_address .= sprintf( __( 'VAT ID: %s', 'woocommerce-pdf-invoices' ), $company_vat_id );
1108
  }
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.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -344,6 +344,10 @@ Since version 2.9.4 the plugin removed the ability to update the PDF invoice whe
344
 
345
  == Changelog ==
346
 
 
 
 
 
347
  = 3.0.10 - October 28, 2019 =
348
 
349
  - Fixed: Fatal errors when using micro template.
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.11
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.11 - November 8, 2019 =
348
+
349
+ - Added: Company registration number.
350
+
351
  = 3.0.10 - October 28, 2019 =
352
 
353
  - Fixed: Fatal errors when using micro template.