Version Description
- Fix: Make sure we are not registering core legal checkboxes again
Download this release
Release Info
Developer | vendidero |
Plugin | WooCommerce Germanized |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- includes/class-wc-gzd-legal-checkbox-manager.php +16 -1
- readme.txt +6 -3
- woocommerce-germanized.php +2 -2
includes/class-wc-gzd-legal-checkbox-manager.php
CHANGED
@@ -8,6 +8,16 @@ class WC_GZD_Legal_Checkbox_Manager {
|
|
8 |
|
9 |
protected $options = null;
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
public static function instance() {
|
12 |
if ( is_null( self::$_instance ) )
|
13 |
self::$_instance = new self();
|
@@ -43,6 +53,10 @@ class WC_GZD_Legal_Checkbox_Manager {
|
|
43 |
return $fragments;
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
46 |
protected function get_legal_label_args() {
|
47 |
return array(
|
48 |
'{term_link}' => '<a href="' . esc_url( wc_gzd_get_page_permalink( 'terms' ) ) . '" target="_blank">',
|
@@ -273,10 +287,11 @@ class WC_GZD_Legal_Checkbox_Manager {
|
|
273 |
|
274 |
do_action( 'woocommerce_gzd_register_legal_checkboxes', $this );
|
275 |
|
|
|
276 |
foreach( $this->get_options() as $id => $checkbox_args ) {
|
277 |
if ( $checkbox = $this->get_checkbox( $id ) ) {
|
278 |
$checkbox->update( $checkbox_args );
|
279 |
-
}
|
280 |
$this->register( $id, $checkbox_args );
|
281 |
}
|
282 |
}
|
8 |
|
9 |
protected $options = null;
|
10 |
|
11 |
+
protected $core_checkboxes = array(
|
12 |
+
'terms',
|
13 |
+
'download',
|
14 |
+
'service',
|
15 |
+
'parcel_delivery',
|
16 |
+
'privacy',
|
17 |
+
'sepa',
|
18 |
+
'review_reminder',
|
19 |
+
);
|
20 |
+
|
21 |
public static function instance() {
|
22 |
if ( is_null( self::$_instance ) )
|
23 |
self::$_instance = new self();
|
53 |
return $fragments;
|
54 |
}
|
55 |
|
56 |
+
public function get_core_checkbox_ids() {
|
57 |
+
return apply_filters( 'woocommerce_gzd_legal_checkbox_core_ids', $this->core_checkboxes );
|
58 |
+
}
|
59 |
+
|
60 |
protected function get_legal_label_args() {
|
61 |
return array(
|
62 |
'{term_link}' => '<a href="' . esc_url( wc_gzd_get_page_permalink( 'terms' ) ) . '" target="_blank">',
|
287 |
|
288 |
do_action( 'woocommerce_gzd_register_legal_checkboxes', $this );
|
289 |
|
290 |
+
// Make sure we are not registering core checkboxes again
|
291 |
foreach( $this->get_options() as $id => $checkbox_args ) {
|
292 |
if ( $checkbox = $this->get_checkbox( $id ) ) {
|
293 |
$checkbox->update( $checkbox_args );
|
294 |
+
} elseif ( ! in_array( $id, $this->get_core_checkbox_ids() ) ) {
|
295 |
$this->register( $id, $checkbox_args );
|
296 |
}
|
297 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.8
|
|
5 |
Tested up to: 4.9
|
6 |
WC requires at least: 2.4
|
7 |
WC tested up to: 3.4
|
8 |
-
Stable tag: 2.0.
|
9 |
Requires PHP: 5.3
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -76,10 +76,10 @@ We've added some specific compatibility and tests for certain popular WooCommerc
|
|
76 |
* PolyLang
|
77 |
* WooCommerce Dynamic Pricing
|
78 |
* WooCommerce Role Based Pricing
|
|
|
79 |
|
80 |
= Tested WooCommerce Themes =
|
81 |
-
To fit german requirements even better we've developed a special [WooCommerce Theme](https://vendidero.de/vendipro "WooCommerce Theme for German Market") specifically developed for the german market: VendiPro.
|
82 |
-
While developing VendiPro we have considered german design principles to adapt WooCommerce to the german market.
|
83 |
By default, Germanized works with every WooCommerce theme. Some themes may need adjustments due to not using WooCommerce standards hooks or styles. Within our professional version we've tested certain third-party WooCommerce themes to ensure better compatibility with Germanized:
|
84 |
|
85 |
* Flatsome
|
@@ -161,6 +161,9 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
|
|
161 |
|
162 |
== Changelog ==
|
163 |
|
|
|
|
|
|
|
164 |
= 2.0.1 =
|
165 |
* Fix: Failure while loading the 2.0.0 update script
|
166 |
|
5 |
Tested up to: 4.9
|
6 |
WC requires at least: 2.4
|
7 |
WC tested up to: 3.4
|
8 |
+
Stable tag: 2.0.2
|
9 |
Requires PHP: 5.3
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
76 |
* PolyLang
|
77 |
* WooCommerce Dynamic Pricing
|
78 |
* WooCommerce Role Based Pricing
|
79 |
+
* WooCommerce Product Bundles
|
80 |
|
81 |
= Tested WooCommerce Themes =
|
82 |
+
To fit german requirements even better we've developed a special [WooCommerce Theme](https://vendidero.de/vendipro "WooCommerce Theme for German Market") specifically developed for the german market: VendiPro. While developing VendiPro we have considered german design principles to adapt WooCommerce to the german market.
|
|
|
83 |
By default, Germanized works with every WooCommerce theme. Some themes may need adjustments due to not using WooCommerce standards hooks or styles. Within our professional version we've tested certain third-party WooCommerce themes to ensure better compatibility with Germanized:
|
84 |
|
85 |
* Flatsome
|
161 |
|
162 |
== Changelog ==
|
163 |
|
164 |
+
= 2.0.2 =
|
165 |
+
* Fix: Make sure we are not registering core legal checkboxes again
|
166 |
+
|
167 |
= 2.0.1 =
|
168 |
* Fix: Failure while loading the 2.0.0 update script
|
169 |
|
woocommerce-germanized.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce Germanized
|
4 |
* Plugin URI: https://www.vendidero.de/woocommerce-germanized
|
5 |
* Description: WooCommerce Germanized extends WooCommerce to become a legally compliant store in the german market.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: Vendidero
|
8 |
* Author URI: https://vendidero.de
|
9 |
* Requires at least: 3.8
|
@@ -31,7 +31,7 @@ final class WooCommerce_Germanized {
|
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
-
public $version = '2.0.
|
35 |
|
36 |
/**
|
37 |
* Single instance of WooCommerce Germanized Main Class
|
3 |
* Plugin Name: WooCommerce Germanized
|
4 |
* Plugin URI: https://www.vendidero.de/woocommerce-germanized
|
5 |
* Description: WooCommerce Germanized extends WooCommerce to become a legally compliant store in the german market.
|
6 |
+
* Version: 2.0.2
|
7 |
* Author: Vendidero
|
8 |
* Author URI: https://vendidero.de
|
9 |
* Requires at least: 3.8
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '2.0.2';
|
35 |
|
36 |
/**
|
37 |
* Single instance of WooCommerce Germanized Main Class
|