4.4.0 breaks composite products support
-
Hi!
The latest update (4.4.0) breaks composite products support IF the site is not using the woocommerce-multilingual built in multi currency plugin. At least this is the case with 3rd party multi currency plugins in place (the site I’m working on uses WOOCS – Currency switcher).
The issue happens on:
wp-content/plugins/woocommerce-multilingual/compatibility/class-wcml-composite-products.php:L561
There is a function for applying rounding rules:
public function apply_rounding_rules( $price ) { return $this->woocommerce_wpml->multi_currency->prices->apply_rounding_rules( $price ); }
This on the other hand calls a method from
$woocommerce_wpml->multi_currency
which isnull
, if theenable_multi_currency
setting on woocommerce-multilingual is not enabled.This throws Fatal errors rendering the whole site unusable.
- The topic ‘4.4.0 breaks composite products support’ is closed to new replies.