Version Description
- Fix: Woo 3.5 translation order processing email replacement
- Fix: Inline CSS was not applied due to hook priority issues
- Improvement: Added inline CSS to hide "estimated taxes" notice within cart if option is chosen
Download this release
Release Info
Developer | vendidero |
Plugin | WooCommerce Germanized |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- includes/class-wc-gzd-emails.php +1 -1
- readme.txt +6 -1
- woocommerce-germanized.php +17 -12
includes/class-wc-gzd-emails.php
CHANGED
@@ -106,7 +106,7 @@ class WC_GZD_Emails {
|
|
106 |
|
107 |
public function replace_processing_email_text( $translated, $original, $domain ) {
|
108 |
if ( 'woocommerce' === $domain ) {
|
109 |
-
if ( 'Just to let you know
|
110 |
if ( isset( $GLOBALS['wc_gzd_processing_order'] ) ) {
|
111 |
$order = $GLOBALS['wc_gzd_processing_order'];
|
112 |
|
106 |
|
107 |
public function replace_processing_email_text( $translated, $original, $domain ) {
|
108 |
if ( 'woocommerce' === $domain ) {
|
109 |
+
if ( 'Just to let you know — your payment has been confirmed, and order #%s is now being processed:' === $original || 'Your order has been received and is now being processed. Your order details are shown below for your reference:' === $original ) {
|
110 |
if ( isset( $GLOBALS['wc_gzd_processing_order'] ) ) {
|
111 |
$order = $GLOBALS['wc_gzd_processing_order'];
|
112 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.8
|
|
5 |
Tested up to: 5.0
|
6 |
WC requires at least: 2.4
|
7 |
WC tested up to: 3.5
|
8 |
-
Stable tag: 2.2.
|
9 |
Requires PHP: 5.3
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -184,6 +184,11 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
|
|
184 |
|
185 |
== Changelog ==
|
186 |
|
|
|
|
|
|
|
|
|
|
|
187 |
= 2.2.2 =
|
188 |
* Fix: Load WPML Helper settings filter for settings screen only to avoid problems during admin actions
|
189 |
* Fix: Do not force tax calculation for fees if customer is a vat exempt
|
5 |
Tested up to: 5.0
|
6 |
WC requires at least: 2.4
|
7 |
WC tested up to: 3.5
|
8 |
+
Stable tag: 2.2.3
|
9 |
Requires PHP: 5.3
|
10 |
License: GPLv3
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 2.2.3 =
|
188 |
+
* Fix: Woo 3.5 translation order processing email replacement
|
189 |
+
* Fix: Inline CSS was not applied due to hook priority issues
|
190 |
+
* Improvement: Added inline CSS to hide "estimated taxes" notice within cart if option is chosen
|
191 |
+
|
192 |
= 2.2.2 =
|
193 |
* Fix: Load WPML Helper settings filter for settings screen only to avoid problems during admin actions
|
194 |
* Fix: Do not force tax calculation for fees if customer is a vat exempt
|
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.2.
|
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.2.
|
35 |
|
36 |
/**
|
37 |
* Single instance of WooCommerce Germanized Main Class
|
@@ -195,7 +195,7 @@ final class WooCommerce_Germanized {
|
|
195 |
|
196 |
// Load after WooCommerce Frontend scripts
|
197 |
add_action( 'wp_enqueue_scripts', array( $this, 'add_scripts' ), 15 );
|
198 |
-
add_action( 'wp_enqueue_scripts', array( $this, 'add_inline_styles' ) );
|
199 |
add_action( 'wp_print_scripts', array( $this, 'localize_scripts' ), 5 );
|
200 |
add_action( 'wp_print_footer_scripts', array( $this, 'localize_scripts' ), 5 );
|
201 |
|
@@ -629,15 +629,6 @@ final class WooCommerce_Germanized {
|
|
629 |
), $links );
|
630 |
}
|
631 |
|
632 |
-
/**
|
633 |
-
* Adds woocommerce checkout table background highlight color as inline css
|
634 |
-
*/
|
635 |
-
public function add_inline_styles() {
|
636 |
-
$color = ( get_option( 'woocommerce_gzd_display_checkout_table_color' ) ? get_option( 'woocommerce_gzd_display_checkout_table_color' ) : '#eee' );
|
637 |
-
$custom_css = ".woocommerce-checkout .shop_table { background-color: $color; }";
|
638 |
-
wp_add_inline_style( 'woocommerce-gzd-layout', $custom_css );
|
639 |
-
}
|
640 |
-
|
641 |
/**
|
642 |
* Add Scripts to frontend
|
643 |
*/
|
@@ -688,6 +679,20 @@ final class WooCommerce_Germanized {
|
|
688 |
do_action( 'woocommerce_gzd_registered_scripts', $suffix, $frontend_script_path, $assets_path );
|
689 |
}
|
690 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
691 |
/**
|
692 |
* Localize Script to enable AJAX
|
693 |
*/
|
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.2.3
|
7 |
* Author: Vendidero
|
8 |
* Author URI: https://vendidero.de
|
9 |
* Requires at least: 3.8
|
31 |
*
|
32 |
* @var string
|
33 |
*/
|
34 |
+
public $version = '2.2.3';
|
35 |
|
36 |
/**
|
37 |
* Single instance of WooCommerce Germanized Main Class
|
195 |
|
196 |
// Load after WooCommerce Frontend scripts
|
197 |
add_action( 'wp_enqueue_scripts', array( $this, 'add_scripts' ), 15 );
|
198 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'add_inline_styles' ), 20 );
|
199 |
add_action( 'wp_print_scripts', array( $this, 'localize_scripts' ), 5 );
|
200 |
add_action( 'wp_print_footer_scripts', array( $this, 'localize_scripts' ), 5 );
|
201 |
|
629 |
), $links );
|
630 |
}
|
631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
/**
|
633 |
* Add Scripts to frontend
|
634 |
*/
|
679 |
do_action( 'woocommerce_gzd_registered_scripts', $suffix, $frontend_script_path, $assets_path );
|
680 |
}
|
681 |
|
682 |
+
/**
|
683 |
+
* Adds woocommerce checkout table background highlight color as inline css
|
684 |
+
*/
|
685 |
+
public function add_inline_styles() {
|
686 |
+
$color = ( get_option( 'woocommerce_gzd_display_checkout_table_color' ) ? get_option( 'woocommerce_gzd_display_checkout_table_color' ) : '#eee' );
|
687 |
+
$custom_css = ".woocommerce-checkout .shop_table { background-color: $color; }";
|
688 |
+
|
689 |
+
if ( 'yes' === get_option( 'woocommerce_gzd_display_hide_cart_tax_estimated' ) ) {
|
690 |
+
$custom_css .= " p.woocommerce-shipping-destination { display: none; }";
|
691 |
+
}
|
692 |
+
|
693 |
+
wp_add_inline_style( 'woocommerce-gzd-layout', $custom_css );
|
694 |
+
}
|
695 |
+
|
696 |
/**
|
697 |
* Localize Script to enable AJAX
|
698 |
*/
|