WooCommerce Germanized - Version 3.1.8

Version Description

  • Fix: Readded legal class to terms checkbox container
  • Improvement: Added woocommerce_gzd_cart_taxes filter to adjust cart tax displays
Download this release

Release Info

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

Code changes from version 3.1.7 to 3.1.8

includes/class-wc-gzd-legal-checkbox.php CHANGED
@@ -203,10 +203,10 @@ class WC_GZD_Legal_Checkbox {
203
  }
204
 
205
  if ( $this->is_mandatory() ) {
206
- $classes = array_replace( $classes, array( 'validate-required' ) );
207
  }
208
 
209
- return $classes;
210
  }
211
 
212
  /**
203
  }
204
 
205
  if ( $this->is_mandatory() ) {
206
+ $classes = array_merge( $classes, array( 'validate-required' ) );
207
  }
208
 
209
+ return array_unique( $classes );
210
  }
211
 
212
  /**
includes/wc-gzd-cart-functions.php CHANGED
@@ -607,7 +607,16 @@ function wc_gzd_get_cart_taxes( $cart, $include_shipping_taxes = true ) {
607
  }
608
  }
609
 
610
- return $tax_array;
 
 
 
 
 
 
 
 
 
611
  }
612
 
613
  function wc_gzd_get_cart_total_taxes( $include_shipping_taxes = true ) {
@@ -684,7 +693,6 @@ function wc_gzd_get_legal_text_digital_email_notice() {
684
  * @param string $text The HTML output.
685
  *
686
  * @since 2.0.2
687
- *
688
  */
689
  return apply_filters( 'woocommerce_gzd_legal_digital_email_text', $text );
690
  }
607
  }
608
  }
609
 
610
+ /**
611
+ * Filter to adjust the cart tax items.
612
+ *
613
+ * @param array $tax_array The array containing tax amounts.
614
+ * @param WC_Cart $cart The cart instance.
615
+ * @param bool $include_shipping_taxes Whether to include shipping taxes or not.
616
+ *
617
+ * @since 3.1.8
618
+ */
619
+ return apply_filters( 'woocommerce_gzd_cart_taxes', $tax_array, $cart, $include_shipping_taxes );
620
  }
621
 
622
  function wc_gzd_get_cart_total_taxes( $include_shipping_taxes = true ) {
693
  * @param string $text The HTML output.
694
  *
695
  * @since 2.0.2
 
696
  */
697
  return apply_filters( 'woocommerce_gzd_legal_digital_email_text', $text );
698
  }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 4.9
5
  Tested up to: 5.4
6
  WC requires at least: 3.4
7
  WC tested up to: 4.2
8
- Stable tag: 3.1.7
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -189,6 +189,10 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
189
  5. Manage shipments for orders
190
 
191
  == Changelog ==
 
 
 
 
192
  = 3.1.7 =
193
  * Feature: WC 4.2 support
194
  * Feature: WooCommerce Product Addons shopmarks support
5
  Tested up to: 5.4
6
  WC requires at least: 3.4
7
  WC tested up to: 4.2
8
+ Stable tag: 3.1.8
9
  Requires PHP: 5.6
10
  License: GPLv3
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
189
  5. Manage shipments for orders
190
 
191
  == Changelog ==
192
+ = 3.1.8 =
193
+ * Fix: Readded legal class to terms checkbox container
194
+ * Improvement: Added woocommerce_gzd_cart_taxes filter to adjust cart tax displays
195
+
196
  = 3.1.7 =
197
  * Feature: WC 4.2 support
198
  * Feature: WooCommerce Product Addons shopmarks support
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit07cd5bc7372a923fe61b8bebf93fc92c::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitd189e63f64e7bdc8a91c8516f9161f97::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_0945dfe3b794c0849cd2e6a564cf5d38() {
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_0945dfe3b794c0849cd2e6a564cf5d38();
120
  /**
121
  * Prepare all the classes for autoloading.
122
  */
123
+ function enqueue_packages_4ef7766d1df2fed2a969eb787c0024f9() {
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_4ef7766d1df2fed2a969eb787c0024f9();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit07cd5bc7372a923fe61b8bebf93fc92c
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit07cd5bc7372a923fe61b8bebf93fc92c
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit07cd5bc7372a923fe61b8bebf93fc92c', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit07cd5bc7372a923fe61b8bebf93fc92c', '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\ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c::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 ComposerAutoloaderInitd189e63f64e7bdc8a91c8516f9161f97
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInitd189e63f64e7bdc8a91c8516f9161f97', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInitd189e63f64e7bdc8a91c8516f9161f97', '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\ComposerStaticInitd189e63f64e7bdc8a91c8516f9161f97::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 ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  's' =>
@@ -66,9 +66,9 @@ class ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c
66
  public static function getInitializer(ClassLoader $loader)
67
  {
68
  return \Closure::bind(function () use ($loader) {
69
- $loader->prefixLengthsPsr4 = ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c::$prefixLengthsPsr4;
70
- $loader->prefixDirsPsr4 = ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c::$prefixDirsPsr4;
71
- $loader->classMap = ComposerStaticInit07cd5bc7372a923fe61b8bebf93fc92c::$classMap;
72
 
73
  }, null, ClassLoader::class);
74
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitd189e63f64e7bdc8a91c8516f9161f97
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 = ComposerStaticInitd189e63f64e7bdc8a91c8516f9161f97::$prefixLengthsPsr4;
70
+ $loader->prefixDirsPsr4 = ComposerStaticInitd189e63f64e7bdc8a91c8516f9161f97::$prefixDirsPsr4;
71
+ $loader->classMap = ComposerStaticInitd189e63f64e7bdc8a91c8516f9161f97::$classMap;
72
 
73
  }, null, ClassLoader::class);
74
  }
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.7
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 4.9
@@ -69,7 +69,7 @@ if ( ! class_exists( 'WooCommerce_Germanized' ) ) :
69
  *
70
  * @var string
71
  */
72
- public $version = '3.1.7';
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.1.8
7
  * Author: vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 4.9
69
  *
70
  * @var string
71
  */
72
+ public $version = '3.1.8';
73
 
74
  /**
75
  * @var WooCommerce_Germanized $instance of the plugin