WooCommerce Germanized - Version 3.7.1

Version Description

  • Fix: Same as parent delivery time option for variations
Download this release

Release Info

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

Code changes from version 3.7.0 to 3.7.1

includes/class-wc-gzd-product-variation.php CHANGED
@@ -149,6 +149,27 @@ class WC_GZD_Product_Variation extends WC_GZD_Product {
149
  $this->set_prop( 'differential_taxation', '' );
150
  }
151
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  protected function is_valid_country_specific_delivery_time( $slug, $country ) {
153
  $delivery_times_parent = array();
154
  $default_parent = false;
149
  $this->set_prop( 'differential_taxation', '' );
150
  }
151
 
152
+ public function get_delivery_time_slugs( $context = 'view' ) {
153
+ $slugs = parent::get_delivery_time_slugs( $context );
154
+
155
+ if ( 'save' !== $context && ! $this->delivery_times_need_update() ) {
156
+ if ( $parent = $this->get_gzd_parent() ) {
157
+ $object_id = $parent->get_id();
158
+ $terms = get_the_terms( $object_id, 'product_delivery_time' );
159
+
160
+ /**
161
+ * Merge available delivery time slugs with parent slugs to make sure
162
+ * to allow parent delivery time as fallback.
163
+ */
164
+ if ( false !== $terms && ! is_wp_error( $terms ) ) {
165
+ $slugs = array_unique( array_merge( $slugs, wp_list_pluck( $terms, 'slug' ) ) );
166
+ }
167
+ }
168
+ }
169
+
170
+ return $slugs;
171
+ }
172
+
173
  protected function is_valid_country_specific_delivery_time( $slug, $country ) {
174
  $delivery_times_parent = array();
175
  $default_parent = false;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 5.4
5
  Tested up to: 5.8
6
  WC requires at least: 3.9
7
  WC tested up to: 5.9
8
- Stable tag: 3.7.0
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -198,6 +198,9 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
198
  6. Edit pdf documents (Pro)
199
 
200
  == Changelog ==
 
 
 
201
  = 3.7.0 =
202
  * Feature: Configure delivery times on a per-country base
203
  * Improvement: Support observing multiple price wrappers for unit price auto calculation
5
  Tested up to: 5.8
6
  WC requires at least: 3.9
7
  WC tested up to: 5.9
8
+ Stable tag: 3.7.1
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
198
  6. Edit pdf documents (Pro)
199
 
200
  == Changelog ==
201
+ = 3.7.1 =
202
+ * Fix: Same as parent delivery time option for variations
203
+
204
  = 3.7.0 =
205
  * Feature: Configure delivery times on a per-country base
206
  * Improvement: Support observing multiple price wrappers for unit price auto calculation
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit53b88cebafdfad099f4410967355311d::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitc2b49c7706c76b66485edbaba37339bd::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitc2b49c7706c76b66485edbaba37339bd
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitc2b49c7706c76b66485edbaba37339bd::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequirec2b49c7706c76b66485edbaba37339bd($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequirec2b49c7706c76b66485edbaba37339bd($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit53b88cebafdfad099f4410967355311d
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit53b88cebafdfad099f4410967355311d', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit53b88cebafdfad099f4410967355311d', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit53b88cebafdfad099f4410967355311d::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit53b88cebafdfad099f4410967355311d::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire53b88cebafdfad099f4410967355311d($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ function composerRequire53b88cebafdfad099f4410967355311d($fileIdentifier, $file)
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
  require $file;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitc2b49c7706c76b66485edbaba37339bd
8
  {
9
  public static $files = array (
10
  '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
@@ -484,9 +484,9 @@ class ComposerStaticInitc2b49c7706c76b66485edbaba37339bd
484
  public static function getInitializer(ClassLoader $loader)
485
  {
486
  return \Closure::bind(function () use ($loader) {
487
- $loader->prefixLengthsPsr4 = ComposerStaticInitc2b49c7706c76b66485edbaba37339bd::$prefixLengthsPsr4;
488
- $loader->prefixDirsPsr4 = ComposerStaticInitc2b49c7706c76b66485edbaba37339bd::$prefixDirsPsr4;
489
- $loader->classMap = ComposerStaticInitc2b49c7706c76b66485edbaba37339bd::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit53b88cebafdfad099f4410967355311d
8
  {
9
  public static $files = array (
10
  '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php',
484
  public static function getInitializer(ClassLoader $loader)
485
  {
486
  return \Closure::bind(function () use ($loader) {
487
+ $loader->prefixLengthsPsr4 = ComposerStaticInit53b88cebafdfad099f4410967355311d::$prefixLengthsPsr4;
488
+ $loader->prefixDirsPsr4 = ComposerStaticInit53b88cebafdfad099f4410967355311d::$prefixDirsPsr4;
489
+ $loader->classMap = ComposerStaticInit53b88cebafdfad099f4410967355311d::$classMap;
490
 
491
  }, null, ClassLoader::class);
492
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '26cff278ed5b9058e28e532a0cfe2cb4880a572c',
9
  'name' => 'vendidero/woocommerce-germanized',
10
  'dev' => false,
11
  ),
@@ -112,7 +112,7 @@
112
  'type' => 'wordpress-plugin',
113
  'install_path' => __DIR__ . '/../../',
114
  'aliases' => array(),
115
- 'reference' => '26cff278ed5b9058e28e532a0cfe2cb4880a572c',
116
  'dev_requirement' => false,
117
  ),
118
  'vendidero/woocommerce-germanized-dhl' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '006717a1576903fbde2073311146d78a26a7d3b2',
9
  'name' => 'vendidero/woocommerce-germanized',
10
  'dev' => false,
11
  ),
112
  'type' => 'wordpress-plugin',
113
  'install_path' => __DIR__ . '/../../',
114
  'aliases' => array(),
115
+ 'reference' => '006717a1576903fbde2073311146d78a26a7d3b2',
116
  'dev_requirement' => false,
117
  ),
118
  'vendidero/woocommerce-germanized-dhl' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jpc2b49c7706c76b66485edbaba37339bd;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp53b88cebafdfad099f4410967355311d;
9
 
10
  // phpcs:ignore
11
 
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.7.0
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 5.4
@@ -69,7 +69,7 @@ if ( ! class_exists( 'WooCommerce_Germanized' ) ) :
69
  *
70
  * @var string
71
  */
72
- public $version = '3.7.0';
73
 
74
  /**
75
  * @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.7.1
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 5.4
69
  *
70
  * @var string
71
  */
72
+ public $version = '3.7.1';
73
 
74
  /**
75
  * @var WooCommerce_Germanized $instance of the plugin