WooCommerce Germanized - Version 1.9.5

Version Description

  • Fix: Fee tax share calculation for WC 3.2
  • Fix: Gateway fee saving
  • Fix: PHP write method return value error
Download this release

Release Info

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

Code changes from version 1.9.4 to 1.9.5

includes/class-wc-gzd-checkout.php CHANGED
@@ -233,7 +233,7 @@ class WC_GZD_Checkout {
233
 
234
  if ( $order ) {
235
  // Reduce order stock for non-cancellable orders
236
- if ( apply_filters( 'woocommerce_payment_complete_reduce_order_stock', ! get_post_meta( $order->id, '_order_stock_reduced', true ), wc_gzd_get_crud_data( $order, 'id' ) ) ) {
237
  $order->reduce_order_stock();
238
  }
239
  }
@@ -352,7 +352,9 @@ class WC_GZD_Checkout {
352
  if ( ! method_exists( $cart, 'set_fee_taxes' ) )
353
  return;
354
 
355
- if ( ! empty( $cart->get_fees() ) ) {
 
 
356
 
357
  $tax_shares = wc_gzd_get_cart_tax_share( 'fee' );
358
  $fee_tax_total = 0;
233
 
234
  if ( $order ) {
235
  // Reduce order stock for non-cancellable orders
236
+ if ( apply_filters( 'woocommerce_payment_complete_reduce_order_stock', ! get_post_meta( wc_gzd_get_crud_data( $order, 'id' ), '_order_stock_reduced', true ), wc_gzd_get_crud_data( $order, 'id' ) ) ) {
237
  $order->reduce_order_stock();
238
  }
239
  }
352
  if ( ! method_exists( $cart, 'set_fee_taxes' ) )
353
  return;
354
 
355
+ $fees = $cart->get_fees();
356
+
357
+ if ( ! empty( $fees ) ) {
358
 
359
  $tax_shares = wc_gzd_get_cart_tax_share( 'fee' );
360
  $fee_tax_total = 0;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Requires at least: 3.8
5
  Tested up to: 4.8
6
  WC requires at least: 2.4
7
  WC tested up to: 3.2
8
- Stable tag: 1.9.4
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -169,6 +169,11 @@ Bug reports may be filed via our [GitHub repository](https://github.com/vendider
169
 
170
  == Changelog ==
171
 
 
 
 
 
 
172
  = 1.9.4 =
173
  * Fix: Fee tax share calculation for WC 3.2
174
  * Fix: Gateway fee saving
5
  Tested up to: 4.8
6
  WC requires at least: 2.4
7
  WC tested up to: 3.2
8
+ Stable tag: 1.9.5
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
169
 
170
  == Changelog ==
171
 
172
+ = 1.9.5 =
173
+ * Fix: Fee tax share calculation for WC 3.2
174
+ * Fix: Gateway fee saving
175
+ * Fix: PHP write method return value error
176
+
177
  = 1.9.4 =
178
  * Fix: Fee tax share calculation for WC 3.2
179
  * Fix: Gateway fee saving
woocommerce-germanized.php CHANGED
@@ -3,7 +3,7 @@
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.9.4
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 = '1.9.4';
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: Extends WooCommerce to become a legally compliant store for the german market.
6
+ * Version: 1.9.5
7
  * Author: Vendidero
8
  * Author URI: https://vendidero.de
9
  * Requires at least: 3.8
31
  *
32
  * @var string
33
  */
34
+ public $version = '1.9.5';
35
 
36
  /**
37
  * Single instance of WooCommerce Germanized Main Class