WooCommerce Germanized - Version 1.6.8

Version Description

  • Fix - Direct Debit Checkbox Validation
Download this release

Release Info

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

Code changes from version 1.6.7 to 1.6.8

includes/gateways/direct-debit/class-wc-gzd-gateway-direct-debit.php CHANGED
@@ -681,7 +681,7 @@ Please notice: Period for pre-information of the SEPA direct debit is shortened
681
 
682
  public function validate_checkbox() {
683
 
684
- if ( $this->enable_checkbox === 'yes' && ( ! isset( $_POST[ 'direct_debit_legal' ] ) && empty( $_POST[ 'direct_debit_legal' ] ) ) )
685
  wc_add_notice( __( 'Please accept the direct debit mandate.', 'woocommerce-germanized' ), 'error' );
686
 
687
  }
681
 
682
  public function validate_checkbox() {
683
 
684
+ if ( isset( $_POST[ 'payment_method' ] ) && $_POST[ 'payment_method' ] === $this->id && $this->enable_checkbox === 'yes' && ( ! isset( $_POST[ 'direct_debit_legal' ] ) && empty( $_POST[ 'direct_debit_legal' ] ) ) )
685
  wc_add_notice( __( 'Please accept the direct debit mandate.', 'woocommerce-germanized' ), 'error' );
686
 
687
  }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: vendidero
3
  Tags: woocommerce, german market, german, germany, deutsch, deutschland, de, de_DE, shop, commerce, e-commerce, ecommerce, woothemes, sepa, invoice
4
  Requires at least: 3.8
5
- Tested up to: 4.5
6
- Stable tag: 1.6.7
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -157,6 +157,9 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
157
 
158
  == Changelog ==
159
 
 
 
 
160
  = 1.6.7 =
161
  * Fix - Free Shipping Auto Select WC 2.6
162
  * Fix - Payment Gateways Shortcode
2
  Contributors: vendidero
3
  Tags: woocommerce, german market, german, germany, deutsch, deutschland, de, de_DE, shop, commerce, e-commerce, ecommerce, woothemes, sepa, invoice
4
  Requires at least: 3.8
5
+ Tested up to: 4.6
6
+ Stable tag: 1.6.8
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
157
 
158
  == Changelog ==
159
 
160
+ = 1.6.8 =
161
+ * Fix - Direct Debit Checkbox Validation
162
+
163
  = 1.6.7 =
164
  * Fix - Free Shipping Auto Select WC 2.6
165
  * Fix - Payment Gateways Shortcode
woocommerce-germanized.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
- * Version: 1.6.7
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 3.8
10
- * Tested up to: 4.5
11
  * Requires at least WooCommerce: 2.4
12
  * Tested up to WooCommerce: 2.6
13
  *
@@ -28,7 +28,7 @@ final class WooCommerce_Germanized {
28
  *
29
  * @var string
30
  */
31
- public $version = '1.6.7';
32
 
33
  /**
34
  * Single instance of WooCommerce Germanized Main Class
3
  * Plugin Name: WooCommerce Germanized
4
  * Plugin URI: https://www.vendidero.de/woocommerce-germanized
5
  * Description: Extends WooCommerce to become a legally compliant store for the german market.
6
+ * Version: 1.6.8
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 3.8
10
+ * Tested up to: 4.6
11
  * Requires at least WooCommerce: 2.4
12
  * Tested up to WooCommerce: 2.6
13
  *
28
  *
29
  * @var string
30
  */
31
+ public $version = '1.6.8';
32
 
33
  /**
34
  * Single instance of WooCommerce Germanized Main Class