WooCommerce Germanized - Version 3.1.2

Version Description

  • Fix: Return shipments customer item quantity
  • Fix: Cast chosen shipping methods to array while retrieving session data
  • Improvement: Woo Subscription 3.0 compatibility
  • Improvement: WPML email subject/heading translation fallback
  • Improvement: Do not force clear cart within customer cancellation prevention option
Download this release

Release Info

Developer vendidero
Plugin Icon 128x128 WooCommerce Germanized
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

includes/class-wc-gzd-checkout.php CHANGED
@@ -377,7 +377,7 @@ class WC_GZD_Checkout {
377
 
378
  // Unset chosen shipping method to avoid key errors
379
  if ( isset( WC()->session ) && ! is_null( WC()->session ) ) {
380
- $chosen_shipping_methods = WC()->session->get( 'chosen_shipping_methods' );
381
  }
382
 
383
  foreach ( $rates as $key => $rate ) {
377
 
378
  // Unset chosen shipping method to avoid key errors
379
  if ( isset( WC()->session ) && ! is_null( WC()->session ) ) {
380
+ $chosen_shipping_methods = (array) WC()->session->get( 'chosen_shipping_methods' );
381
  }
382
 
383
  foreach ( $rates as $key => $rate ) {
includes/class-wc-gzd-emails.php CHANGED
@@ -529,9 +529,21 @@ class WC_GZD_Emails {
529
  */
530
  do_action( 'woocommerce_gzd_order_confirmation', $order );
531
 
532
- // Always clear cart after order success
533
  if ( get_option( 'woocommerce_gzd_checkout_stop_order_cancellation' ) === 'yes' && WC()->cart ) {
534
- WC()->cart->empty_cart();
 
 
 
 
 
 
 
 
 
 
 
 
 
535
  }
536
 
537
  return $result;
@@ -548,7 +560,6 @@ class WC_GZD_Emails {
548
  * @param integer $order_id The order id.
549
  *
550
  * @since 1.0.0
551
- *
552
  */
553
  do_action( 'woocommerce_germanized_before_order_confirmation', $order_id );
554
 
529
  */
530
  do_action( 'woocommerce_gzd_order_confirmation', $order );
531
 
 
532
  if ( get_option( 'woocommerce_gzd_checkout_stop_order_cancellation' ) === 'yes' && WC()->cart ) {
533
+
534
+ /**
535
+ * Decide whether to clear the cart after sending the order confirmation email or not.
536
+ * By default the cart is not cleared to prevent compatibility issues with payment providers
537
+ * like Stripe or Klarna which depend on cart data.
538
+ *
539
+ * @param boolean $clear Whether to clear cart or not.
540
+ * @param WC_Order $order_id The order.
541
+ *
542
+ * @since 3.1.2
543
+ */
544
+ if ( apply_filters( 'woocommerce_gzd_clear_cart_after_order_confirmation', false, $order ) ) {
545
+ WC()->cart->empty_cart();
546
+ }
547
  }
548
 
549
  return $result;
560
  * @param integer $order_id The order id.
561
  *
562
  * @since 1.0.0
 
563
  */
564
  do_action( 'woocommerce_germanized_before_order_confirmation', $order_id );
565
 
includes/compatibility/class-wc-gzd-compatibility-woocommerce-subscriptions.php CHANGED
@@ -45,7 +45,9 @@ class WC_GZD_Compatibility_WooCommerce_Subscriptions extends WC_GZD_Compatibilit
45
  public function product_classname( $classname, $type ) {
46
  if ( 'variable-subscription' === $type ) {
47
  return 'WC_GZD_Product_Variable';
48
- }
 
 
49
 
50
  return $classname;
51
  }
45
  public function product_classname( $classname, $type ) {
46
  if ( 'variable-subscription' === $type ) {
47
  return 'WC_GZD_Product_Variable';
48
+ } elseif( 'subscription_variation' === $type ) {
49
+ return 'WC_GZD_Product_Variation';
50
+ }
51
 
52
  return $classname;
53
  }
includes/compatibility/class-wc-gzd-compatibility-wpml.php CHANGED
@@ -176,9 +176,44 @@ class WC_GZD_Compatibility_WPML extends WC_GZD_Compatibility {
176
  * the send method.
177
  */
178
  $email->init_settings();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  }
180
  }
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  /**
183
  * Restore email locale after successfully sending the email
184
  */
176
  * the send method.
177
  */
178
  $email->init_settings();
179
+
180
+ /**
181
+ * Manually adjust subject + heading option which does seem to cause problems
182
+ * for custom emails such as invoice and cancellation email.
183
+ */
184
+ if ( $subject = $this->translate_email_setting( $email->id, 'subject' ) ) {
185
+ $email->settings['subject'] = $subject;
186
+ }
187
+
188
+ if ( $heading = $this->translate_email_setting( $email->id, 'heading' ) ) {
189
+ $email->settings['heading'] = $heading;
190
+ }
191
+
192
+ /**
193
+ * This action fires as soon as the WPML email language has been switched by the Germanized compatibility script.
194
+ *
195
+ * @param string $lang Language e.g. en
196
+ * @param WC_Email $email The email instance.
197
+ *
198
+ * @since 3.1.2
199
+ */
200
+ do_action( 'woocommerce_gzd_wpml_switched_email_language', $this->email_lang, $email );
201
  }
202
  }
203
 
204
+ protected function translate_email_setting( $email_id, $option_name = 'heading' ) {
205
+ global $woocommerce_wpml;
206
+
207
+ if ( ! is_callable( array( $woocommerce_wpml->emails, 'wcml_get_translated_email_string' ) ) ) {
208
+ return false;
209
+ }
210
+
211
+ $domain = 'admin_texts_woocommerce_' . $email_id . '_settings';
212
+ $namePrefix = '[woocommerce_' . $email_id . '_settings]';
213
+
214
+ return $woocommerce_wpml->emails->wcml_get_translated_email_string( $domain, $namePrefix . $option_name, false, $this->email_lang );
215
+ }
216
+
217
  /**
218
  * Restore email locale after successfully sending the email
219
  */
includes/wc-gzd-cart-functions.php CHANGED
@@ -423,6 +423,59 @@ function wc_gzd_cart_get_age_verification_min_age( $items = false ) {
423
  }
424
  }
425
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  /**
427
  * Calculates tax share for shipping/fees
428
  *
@@ -443,49 +496,9 @@ function wc_gzd_get_cart_tax_share( $type = 'shipping', $cart_contents = array()
443
  */
444
  $_product = apply_filters( 'woocommerce_cart_item_product', $item['data'], $item, $key );
445
 
446
- /**
447
- * Cart item tax share product.
448
- *
449
- * Filters the product containing shipping information for cart item tax share calculation.
450
- *
451
- * @param WC_Product $_product The product object.
452
- * @param array $item The cart item.
453
- * @param string $key The cart item hash.
454
- * @param string $type The tax calculation type e.g. shipping or fees.
455
- *
456
- * @since 2.0.2
457
- *
458
- */
459
- $_product_shipping = apply_filters( 'woocommerce_gzd_cart_item_tax_share_product', $_product, $item, $key, $type );
460
- $no_shipping = false;
461
-
462
- if ( 'shipping' === $type ) {
463
- if ( $_product_shipping->is_virtual() || wc_gzd_get_product( $_product_shipping )->is_virtual_vat_exception() ) {
464
- $no_shipping = true;
465
- }
466
-
467
- $tax_status = $_product->get_tax_status();
468
- $tax_class = $_product->get_tax_class();
469
-
470
- if ( 'none' === $tax_status || 'zero-rate' === $tax_class ) {
471
- $no_shipping = true;
472
- }
473
- }
474
-
475
- /**
476
- * Filter whether cart item supports tax share calculation or not.
477
- *
478
- * @param bool $no_shipping True if supports calculation. False otherwise.
479
- * @param array $item The cart item.
480
- * @param string $key The cart item hash.
481
- * @param string $type The tax calculation type e.g. shipping or fees.
482
- *
483
- * @since 1.7.5
484
- *
485
- */
486
- if ( apply_filters( 'woocommerce_gzd_cart_item_not_supporting_tax_share', $no_shipping, $item, $key, $type ) ) {
487
- continue;
488
- }
489
 
490
  $class = $_product->get_tax_class();
491
 
423
  }
424
  }
425
 
426
+ function wc_gzd_item_is_tax_share_exempt( $item, $type = 'shipping', $key = false ) {
427
+ $exempt = false;
428
+ $_product = false;
429
+ $is_cart = false;
430
+
431
+ if ( is_a( $item, 'WC_Order_Item' ) ) {
432
+ $_product = $item->get_product();
433
+ } elseif ( isset( $item['data'] ) ) {
434
+ $_product = apply_filters( 'woocommerce_cart_item_product', $item['data'], $item, $key );
435
+ $is_cart = true;
436
+ }
437
+
438
+ if ( 'shipping' === $type && $_product ) {
439
+ if ( $_product->is_virtual() || wc_gzd_get_product( $_product )->is_virtual_vat_exception() ) {
440
+ $exempt = true;
441
+ }
442
+
443
+ $tax_status = $_product->get_tax_status();
444
+ $tax_class = $_product->get_tax_class();
445
+
446
+ if ( 'none' === $tax_status || 'zero-rate' === $tax_class ) {
447
+ $exempt = true;
448
+ }
449
+ }
450
+
451
+ if ( $is_cart ) {
452
+ /**
453
+ * Filter whether cart item supports tax share calculation or not.
454
+ *
455
+ * @param bool $exempt True if it is an exempt. False if not.
456
+ * @param array $item The cart item.
457
+ * @param string $key The cart item hash if existent.
458
+ * @param string $type The tax calculation type e.g. shipping or fees.
459
+ *
460
+ * @since 1.7.5
461
+ */
462
+ $exempt = apply_filters( 'woocommerce_gzd_cart_item_not_supporting_tax_share', $exempt, $item, $key, $type );
463
+ } else {
464
+ /**
465
+ * Filter whether order item supports tax share calculation or not.
466
+ *
467
+ * @param bool $exempt True if it is an exempt. False if not.
468
+ * @param WC_Order_Item $item The order item.
469
+ * @param string $type The tax calculation type e.g. shipping or fees.
470
+ *
471
+ * @since 3.1.2
472
+ */
473
+ $exempt = apply_filters( 'woocommerce_gzd_order_item_tax_share_exempt', $exempt, $item, $type );
474
+ }
475
+
476
+ return $exempt;
477
+ }
478
+
479
  /**
480
  * Calculates tax share for shipping/fees
481
  *
496
  */
497
  $_product = apply_filters( 'woocommerce_cart_item_product', $item['data'], $item, $key );
498
 
499
+ if ( wc_gzd_item_is_tax_share_exempt( $item, $type, $key ) ) {
500
+ continue;
501
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
502
 
503
  $class = $_product->get_tax_class();
504
 
packages/woocommerce-germanized-shipments/src/FormHandler.php CHANGED
@@ -212,6 +212,10 @@ class FormHandler {
212
  }
213
  }
214
 
 
 
 
 
215
  if ( wc_notice_count( 'error' ) > 0 ) {
216
  return;
217
  }
212
  }
213
  }
214
 
215
+ if ( empty( $return_items ) ) {
216
+ wc_add_notice( _x( 'Please choose one or more items from the list.', 'shipments', 'woocommerce-germanized' ), 'error' );
217
+ }
218
+
219
  if ( wc_notice_count( 'error' ) > 0 ) {
220
  return;
221
  }
packages/woocommerce-germanized-shipments/src/Package.php CHANGED
@@ -17,7 +17,7 @@ class Package {
17
  *
18
  * @var string
19
  */
20
- const VERSION = '1.2.1';
21
 
22
  public static $upload_dir_suffix = '';
23
 
17
  *
18
  * @var string
19
  */
20
+ const VERSION = '1.2.2';
21
 
22
  public static $upload_dir_suffix = '';
23
 
packages/woocommerce-germanized-shipments/src/Shipment.php CHANGED
@@ -1531,7 +1531,7 @@ abstract class Shipment extends WC_Data {
1531
  $items = $this->get_items();
1532
 
1533
  foreach( $items as $item ) {
1534
- if ( $item->get_order_item_id() === $order_item_id ) {
1535
  return $item;
1536
  }
1537
  }
1531
  $items = $this->get_items();
1532
 
1533
  foreach( $items as $item ) {
1534
+ if ( $item->get_order_item_id() === (int) $order_item_id ) {
1535
  return $item;
1536
  }
1537
  }
packages/woocommerce-germanized-shipments/woocommerce-germanized-shipments.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The Germanized Shipments integration, installed as a feature plugin for development and testing purposes.
6
  * Author: vendidero
7
  * Author URI: https://vendidero.de
8
- * Version: 1.2.1
9
  * Requires PHP: 5.6
10
  * License: GPLv3
11
  *
5
  * Description: The Germanized Shipments integration, installed as a feature plugin for development and testing purposes.
6
  * Author: vendidero
7
  * Author URI: https://vendidero.de
8
+ * Version: 1.2.2
9
  * Requires PHP: 5.6
10
  * License: GPLv3
11
  *
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.9
5
  Tested up to: 5.3
6
  WC requires at least: 3.4
7
  WC tested up to: 3.9
8
- Stable tag: 3.1.1
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -190,6 +190,14 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
190
 
191
  == Changelog ==
192
 
 
 
 
 
 
 
 
 
193
  = 3.1.1 =
194
  * Improvement: Return request customer notices
195
  * Improvement: Explicitly support v3 REST API
5
  Tested up to: 5.3
6
  WC requires at least: 3.4
7
  WC tested up to: 3.9
8
+ Stable tag: 3.1.2
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
190
 
191
  == Changelog ==
192
 
193
+ = 3.1.2 =
194
+ * Fix: Return shipments customer item quantity
195
+ * Fix: Cast chosen shipping methods to array while retrieving session data
196
+ * Improvement: Woo Subscription 3.0 compatibility
197
+ * Improvement: WPML email subject/heading translation fallback
198
+ * Improvement: Do not force clear cart within customer cancellation prevention option
199
+
200
+
201
  = 3.1.1 =
202
  * Improvement: Return request customer notices
203
  * Improvement: Explicitly support v3 REST API
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitf4a08feba6e6d1e4c51bb6aeb035cf1a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit32cf267b3f42618c82c5d8c65d75072b::getLoader();
vendor/autoload_packages.php CHANGED
@@ -120,10 +120,10 @@ if ( ! function_exists( __NAMESPACE__ . '\autoloader' ) ) {
120
  /**
121
  * Prepare all the classes for autoloading.
122
  */
123
- function enqueue_packages_6f64b6c56d2f35b7a0f7145bc9baa98e() {
124
  $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
125
  foreach ( $class_map as $class_name => $class_info ) {
126
  enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
127
  }
128
  }
129
- enqueue_packages_6f64b6c56d2f35b7a0f7145bc9baa98e();
120
  /**
121
  * Prepare all the classes for autoloading.
122
  */
123
+ function enqueue_packages_0a5575b5f0ecc37b93ad91fe10b5665e() {
124
  $class_map = require_once dirname( __FILE__ ) . '/composer/autoload_classmap_package.php';
125
  foreach ( $class_map as $class_name => $class_info ) {
126
  enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] );
127
  }
128
  }
129
+ enqueue_packages_0a5575b5f0ecc37b93ad91fe10b5665e();
vendor/composer/autoload_classmap_package.php CHANGED
@@ -199,155 +199,155 @@ return array(
199
  'path' => $baseDir . '/packages/woocommerce-trusted-shops/src/Package.php'
200
  ),
201
  'Vendidero\\Germanized\\Shipments\\Shipment' => array(
202
- 'version' => '1.2.1.0',
203
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Shipment.php'
204
  ),
205
  'Vendidero\\Germanized\\Shipments\\Install' => array(
206
- 'version' => '1.2.1.0',
207
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Install.php'
208
  ),
209
  'Vendidero\\Germanized\\Shipments\\SimpleShipment' => array(
210
- 'version' => '1.2.1.0',
211
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/SimpleShipment.php'
212
  ),
213
  'Vendidero\\Germanized\\Shipments\\ShippingProviderMethod' => array(
214
- 'version' => '1.2.1.0',
215
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviderMethod.php'
216
  ),
217
  'Vendidero\\Germanized\\Shipments\\Package' => array(
218
- 'version' => '1.2.1.0',
219
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Package.php'
220
  ),
221
  'Vendidero\\Germanized\\Shipments\\Order' => array(
222
- 'version' => '1.2.1.0',
223
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Order.php'
224
  ),
225
  'Vendidero\\Germanized\\Shipments\\DataStores\\Shipment' => array(
226
- 'version' => '1.2.1.0',
227
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/Shipment.php'
228
  ),
229
  'Vendidero\\Germanized\\Shipments\\DataStores\\ShippingProvider' => array(
230
- 'version' => '1.2.1.0',
231
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/ShippingProvider.php'
232
  ),
233
  'Vendidero\\Germanized\\Shipments\\DataStores\\ShipmentItem' => array(
234
- 'version' => '1.2.1.0',
235
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/ShipmentItem.php'
236
  ),
237
  'Vendidero\\Germanized\\Shipments\\Ajax' => array(
238
- 'version' => '1.2.1.0',
239
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Ajax.php'
240
  ),
241
  'Vendidero\\Germanized\\Shipments\\ReturnShipment' => array(
242
- 'version' => '1.2.1.0',
243
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ReturnShipment.php'
244
  ),
245
  'Vendidero\\Germanized\\Shipments\\ShippingProvider' => array(
246
- 'version' => '1.2.1.0',
247
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProvider.php'
248
  ),
249
  'Vendidero\\Germanized\\Shipments\\AddressSplitter' => array(
250
- 'version' => '1.2.1.0',
251
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/AddressSplitter.php'
252
  ),
253
  'Vendidero\\Germanized\\Shipments\\Admin\\BulkLabel' => array(
254
- 'version' => '1.2.1.0',
255
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/BulkLabel.php'
256
  ),
257
  'Vendidero\\Germanized\\Shipments\\Admin\\Settings' => array(
258
- 'version' => '1.2.1.0',
259
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Settings.php'
260
  ),
261
  'Vendidero\\Germanized\\Shipments\\Admin\\MetaBox' => array(
262
- 'version' => '1.2.1.0',
263
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/MetaBox.php'
264
  ),
265
  'Vendidero\\Germanized\\Shipments\\Admin\\DownloadHandler' => array(
266
- 'version' => '1.2.1.0',
267
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/DownloadHandler.php'
268
  ),
269
  'Vendidero\\Germanized\\Shipments\\Admin\\ReturnTable' => array(
270
- 'version' => '1.2.1.0',
271
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/ReturnTable.php'
272
  ),
273
  'Vendidero\\Germanized\\Shipments\\Admin\\BulkActionHandler' => array(
274
- 'version' => '1.2.1.0',
275
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/BulkActionHandler.php'
276
  ),
277
  'Vendidero\\Germanized\\Shipments\\Admin\\Admin' => array(
278
- 'version' => '1.2.1.0',
279
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Admin.php'
280
  ),
281
  'Vendidero\\Germanized\\Shipments\\Admin\\Table' => array(
282
- 'version' => '1.2.1.0',
283
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Table.php'
284
  ),
285
  'Vendidero\\Germanized\\Shipments\\ShipmentQuery' => array(
286
- 'version' => '1.2.1.0',
287
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentQuery.php'
288
  ),
289
  'Vendidero\\Germanized\\Shipments\\WPMLHelper' => array(
290
- 'version' => '1.2.1.0',
291
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/WPMLHelper.php'
292
  ),
293
  'Vendidero\\Germanized\\Shipments\\ShipmentReturnItem' => array(
294
- 'version' => '1.2.1.0',
295
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentReturnItem.php'
296
  ),
297
  'Vendidero\\Germanized\\Shipments\\FormHandler' => array(
298
- 'version' => '1.2.1.0',
299
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/FormHandler.php'
300
  ),
301
  'Vendidero\\Germanized\\Shipments\\PDFMerger' => array(
302
- 'version' => '1.2.1.0',
303
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/PDFMerger.php'
304
  ),
305
  'Vendidero\\Germanized\\Shipments\\ShipmentFactory' => array(
306
- 'version' => '1.2.1.0',
307
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentFactory.php'
308
  ),
309
  'Vendidero\\Germanized\\Shipments\\ShippingProviderMethodPlaceholder' => array(
310
- 'version' => '1.2.1.0',
311
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviderMethodPlaceholder.php'
312
  ),
313
  'Vendidero\\Germanized\\Shipments\\Automation' => array(
314
- 'version' => '1.2.1.0',
315
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Automation.php'
316
  ),
317
  'Vendidero\\Germanized\\Shipments\\ShippingProviders' => array(
318
- 'version' => '1.2.1.0',
319
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviders.php'
320
  ),
321
  'Vendidero\\Germanized\\Shipments\\Api' => array(
322
- 'version' => '1.2.1.0',
323
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Api.php'
324
  ),
325
  'Vendidero\\Germanized\\Shipments\\ShipmentItem' => array(
326
- 'version' => '1.2.1.0',
327
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentItem.php'
328
  ),
329
  'Vendidero\\Germanized\\Shipments\\Validation' => array(
330
- 'version' => '1.2.1.0',
331
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Validation.php'
332
  ),
333
  'Vendidero\\Germanized\\Shipments\\Emails' => array(
334
- 'version' => '1.2.1.0',
335
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Emails.php'
336
  ),
337
  'Vendidero\\Germanized\\Shipments\\PDFSplitter' => array(
338
- 'version' => '1.2.1.0',
339
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/PDFSplitter.php'
340
  ),
341
  'Vendidero\\Germanized\\Shipments\\ReturnReason' => array(
342
- 'version' => '1.2.1.0',
343
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ReturnReason.php'
344
  ),
345
  'Vendidero\\Germanized\\Shipments\\Interfaces\\ShipmentReturnLabel' => array(
346
- 'version' => '1.2.1.0',
347
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Interfaces/ShipmenReturnLabel.php'
348
  ),
349
  'Vendidero\\Germanized\\Shipments\\Interfaces\\ShipmentLabel' => array(
350
- 'version' => '1.2.1.0',
351
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Interfaces/ShipmentLabel.php'
352
  ),
353
  'Vendidero\\Germanized\\DHL\\ShippingProviderDHL' => array(
199
  'path' => $baseDir . '/packages/woocommerce-trusted-shops/src/Package.php'
200
  ),
201
  'Vendidero\\Germanized\\Shipments\\Shipment' => array(
202
+ 'version' => '1.2.2.0',
203
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Shipment.php'
204
  ),
205
  'Vendidero\\Germanized\\Shipments\\Install' => array(
206
+ 'version' => '1.2.2.0',
207
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Install.php'
208
  ),
209
  'Vendidero\\Germanized\\Shipments\\SimpleShipment' => array(
210
+ 'version' => '1.2.2.0',
211
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/SimpleShipment.php'
212
  ),
213
  'Vendidero\\Germanized\\Shipments\\ShippingProviderMethod' => array(
214
+ 'version' => '1.2.2.0',
215
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviderMethod.php'
216
  ),
217
  'Vendidero\\Germanized\\Shipments\\Package' => array(
218
+ 'version' => '1.2.2.0',
219
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Package.php'
220
  ),
221
  'Vendidero\\Germanized\\Shipments\\Order' => array(
222
+ 'version' => '1.2.2.0',
223
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Order.php'
224
  ),
225
  'Vendidero\\Germanized\\Shipments\\DataStores\\Shipment' => array(
226
+ 'version' => '1.2.2.0',
227
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/Shipment.php'
228
  ),
229
  'Vendidero\\Germanized\\Shipments\\DataStores\\ShippingProvider' => array(
230
+ 'version' => '1.2.2.0',
231
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/ShippingProvider.php'
232
  ),
233
  'Vendidero\\Germanized\\Shipments\\DataStores\\ShipmentItem' => array(
234
+ 'version' => '1.2.2.0',
235
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/DataStores/ShipmentItem.php'
236
  ),
237
  'Vendidero\\Germanized\\Shipments\\Ajax' => array(
238
+ 'version' => '1.2.2.0',
239
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Ajax.php'
240
  ),
241
  'Vendidero\\Germanized\\Shipments\\ReturnShipment' => array(
242
+ 'version' => '1.2.2.0',
243
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ReturnShipment.php'
244
  ),
245
  'Vendidero\\Germanized\\Shipments\\ShippingProvider' => array(
246
+ 'version' => '1.2.2.0',
247
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProvider.php'
248
  ),
249
  'Vendidero\\Germanized\\Shipments\\AddressSplitter' => array(
250
+ 'version' => '1.2.2.0',
251
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/AddressSplitter.php'
252
  ),
253
  'Vendidero\\Germanized\\Shipments\\Admin\\BulkLabel' => array(
254
+ 'version' => '1.2.2.0',
255
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/BulkLabel.php'
256
  ),
257
  'Vendidero\\Germanized\\Shipments\\Admin\\Settings' => array(
258
+ 'version' => '1.2.2.0',
259
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Settings.php'
260
  ),
261
  'Vendidero\\Germanized\\Shipments\\Admin\\MetaBox' => array(
262
+ 'version' => '1.2.2.0',
263
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/MetaBox.php'
264
  ),
265
  'Vendidero\\Germanized\\Shipments\\Admin\\DownloadHandler' => array(
266
+ 'version' => '1.2.2.0',
267
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/DownloadHandler.php'
268
  ),
269
  'Vendidero\\Germanized\\Shipments\\Admin\\ReturnTable' => array(
270
+ 'version' => '1.2.2.0',
271
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/ReturnTable.php'
272
  ),
273
  'Vendidero\\Germanized\\Shipments\\Admin\\BulkActionHandler' => array(
274
+ 'version' => '1.2.2.0',
275
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/BulkActionHandler.php'
276
  ),
277
  'Vendidero\\Germanized\\Shipments\\Admin\\Admin' => array(
278
+ 'version' => '1.2.2.0',
279
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Admin.php'
280
  ),
281
  'Vendidero\\Germanized\\Shipments\\Admin\\Table' => array(
282
+ 'version' => '1.2.2.0',
283
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Admin/Table.php'
284
  ),
285
  'Vendidero\\Germanized\\Shipments\\ShipmentQuery' => array(
286
+ 'version' => '1.2.2.0',
287
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentQuery.php'
288
  ),
289
  'Vendidero\\Germanized\\Shipments\\WPMLHelper' => array(
290
+ 'version' => '1.2.2.0',
291
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/WPMLHelper.php'
292
  ),
293
  'Vendidero\\Germanized\\Shipments\\ShipmentReturnItem' => array(
294
+ 'version' => '1.2.2.0',
295
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentReturnItem.php'
296
  ),
297
  'Vendidero\\Germanized\\Shipments\\FormHandler' => array(
298
+ 'version' => '1.2.2.0',
299
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/FormHandler.php'
300
  ),
301
  'Vendidero\\Germanized\\Shipments\\PDFMerger' => array(
302
+ 'version' => '1.2.2.0',
303
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/PDFMerger.php'
304
  ),
305
  'Vendidero\\Germanized\\Shipments\\ShipmentFactory' => array(
306
+ 'version' => '1.2.2.0',
307
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentFactory.php'
308
  ),
309
  'Vendidero\\Germanized\\Shipments\\ShippingProviderMethodPlaceholder' => array(
310
+ 'version' => '1.2.2.0',
311
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviderMethodPlaceholder.php'
312
  ),
313
  'Vendidero\\Germanized\\Shipments\\Automation' => array(
314
+ 'version' => '1.2.2.0',
315
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Automation.php'
316
  ),
317
  'Vendidero\\Germanized\\Shipments\\ShippingProviders' => array(
318
+ 'version' => '1.2.2.0',
319
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShippingProviders.php'
320
  ),
321
  'Vendidero\\Germanized\\Shipments\\Api' => array(
322
+ 'version' => '1.2.2.0',
323
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Api.php'
324
  ),
325
  'Vendidero\\Germanized\\Shipments\\ShipmentItem' => array(
326
+ 'version' => '1.2.2.0',
327
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ShipmentItem.php'
328
  ),
329
  'Vendidero\\Germanized\\Shipments\\Validation' => array(
330
+ 'version' => '1.2.2.0',
331
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Validation.php'
332
  ),
333
  'Vendidero\\Germanized\\Shipments\\Emails' => array(
334
+ 'version' => '1.2.2.0',
335
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Emails.php'
336
  ),
337
  'Vendidero\\Germanized\\Shipments\\PDFSplitter' => array(
338
+ 'version' => '1.2.2.0',
339
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/PDFSplitter.php'
340
  ),
341
  'Vendidero\\Germanized\\Shipments\\ReturnReason' => array(
342
+ 'version' => '1.2.2.0',
343
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/ReturnReason.php'
344
  ),
345
  'Vendidero\\Germanized\\Shipments\\Interfaces\\ShipmentReturnLabel' => array(
346
+ 'version' => '1.2.2.0',
347
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Interfaces/ShipmenReturnLabel.php'
348
  ),
349
  'Vendidero\\Germanized\\Shipments\\Interfaces\\ShipmentLabel' => array(
350
+ 'version' => '1.2.2.0',
351
  'path' => $baseDir . '/packages/woocommerce-germanized-shipments/src/Interfaces/ShipmentLabel.php'
352
  ),
353
  'Vendidero\\Germanized\\DHL\\ShippingProviderDHL' => array(
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitf4a08feba6e6d1e4c51bb6aeb035cf1a
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitf4a08feba6e6d1e4c51bb6aeb035cf1a
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitf4a08feba6e6d1e4c51bb6aeb035cf1a', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitf4a08feba6e6d1e4c51bb6aeb035cf1a', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit32cf267b3f42618c82c5d8c65d75072b
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit32cf267b3f42618c82c5d8c65d75072b', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit32cf267b3f42618c82c5d8c65d75072b', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit32cf267b3f42618c82c5d8c65d75072b::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  's' =>
@@ -66,9 +66,9 @@ class ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
- $loader->prefixLengthsPsr4 = ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a::$prefixLengthsPsr4;
70
- $loader->prefixDirsPsr4 = ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a::$prefixDirsPsr4;
71
- $loader->classMap = ComposerStaticInitf4a08feba6e6d1e4c51bb6aeb035cf1a::$classMap;
72
 
73
  }, null, ClassLoader::class);
74
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit32cf267b3f42618c82c5d8c65d75072b
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  's' =>
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
+ $loader->prefixLengthsPsr4 = ComposerStaticInit32cf267b3f42618c82c5d8c65d75072b::$prefixLengthsPsr4;
70
+ $loader->prefixDirsPsr4 = ComposerStaticInit32cf267b3f42618c82c5d8c65d75072b::$prefixDirsPsr4;
71
+ $loader->classMap = ComposerStaticInit32cf267b3f42618c82c5d8c65d75072b::$classMap;
72
 
73
  }, null, ClassLoader::class);
74
  }
vendor/composer/installed.json CHANGED
@@ -358,17 +358,17 @@
358
  },
359
  {
360
  "name": "vendidero/woocommerce-germanized-shipments",
361
- "version": "v1.2.1",
362
- "version_normalized": "1.2.1.0",
363
  "source": {
364
  "type": "git",
365
  "url": "https://github.com/vendidero/woocommerce-germanized-shipments.git",
366
- "reference": "45fd42d2ba7ba08c4858662352cef866b1237926"
367
  },
368
  "dist": {
369
  "type": "zip",
370
- "url": "https://api.github.com/repos/vendidero/woocommerce-germanized-shipments/zipball/45fd42d2ba7ba08c4858662352cef866b1237926",
371
- "reference": "45fd42d2ba7ba08c4858662352cef866b1237926",
372
  "shasum": ""
373
  },
374
  "require": {
@@ -379,7 +379,7 @@
379
  "phpunit/phpunit": "6.5.14",
380
  "woocommerce/woocommerce-sniffs": "0.0.6"
381
  },
382
- "time": "2020-01-21T12:47:23+00:00",
383
  "type": "wordpress-plugin",
384
  "installation-source": "dist",
385
  "autoload": {
@@ -401,7 +401,7 @@
401
  "description": "The Germanized Shipments implementation.",
402
  "homepage": "https://github.com/vendidero/woocommerce-germanized-shipments",
403
  "support": {
404
- "source": "https://github.com/vendidero/woocommerce-germanized-shipments/tree/v1.2.1",
405
  "issues": "https://github.com/vendidero/woocommerce-germanized-shipments/issues"
406
  }
407
  },
358
  },
359
  {
360
  "name": "vendidero/woocommerce-germanized-shipments",
361
+ "version": "v1.2.2",
362
+ "version_normalized": "1.2.2.0",
363
  "source": {
364
  "type": "git",
365
  "url": "https://github.com/vendidero/woocommerce-germanized-shipments.git",
366
+ "reference": "1fa2ee31cc96b71bd89f495ac5152e6b5c337843"
367
  },
368
  "dist": {
369
  "type": "zip",
370
+ "url": "https://api.github.com/repos/vendidero/woocommerce-germanized-shipments/zipball/1fa2ee31cc96b71bd89f495ac5152e6b5c337843",
371
+ "reference": "1fa2ee31cc96b71bd89f495ac5152e6b5c337843",
372
  "shasum": ""
373
  },
374
  "require": {
379
  "phpunit/phpunit": "6.5.14",
380
  "woocommerce/woocommerce-sniffs": "0.0.6"
381
  },
382
+ "time": "2020-01-27T11:07:18+00:00",
383
  "type": "wordpress-plugin",
384
  "installation-source": "dist",
385
  "autoload": {
401
  "description": "The Germanized Shipments implementation.",
402
  "homepage": "https://github.com/vendidero/woocommerce-germanized-shipments",
403
  "support": {
404
+ "source": "https://github.com/vendidero/woocommerce-germanized-shipments/tree/v1.2.2",
405
  "issues": "https://github.com/vendidero/woocommerce-germanized-shipments/issues"
406
  }
407
  },
woocommerce-germanized.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Germanized for WooCommerce
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Germanized for WooCommerce extends WooCommerce to become a legally compliant store in the german market.
6
- * Version: 3.1.1
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 4.9
@@ -63,7 +63,7 @@ if ( ! class_exists( 'WooCommerce_Germanized' ) ) :
63
  *
64
  * @var string
65
  */
66
- public $version = '3.1.1';
67
 
68
  /**
69
  * @var WooCommerce_Germanized $instance of the plugin
3
  * Plugin Name: Germanized for WooCommerce
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Germanized for WooCommerce extends WooCommerce to become a legally compliant store in the german market.
6
+ * Version: 3.1.2
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 4.9
63
  *
64
  * @var string
65
  */
66
+ public $version = '3.1.2';
67
 
68
  /**
69
  * @var WooCommerce_Germanized $instance of the plugin