Merge pull request #16888 from thenbrent/fix_shipping_tax

Fix shipping tax when calling WC_Cart::calculate_shipping()
This commit is contained in:
Mike Jolley 2017-09-22 14:11:24 +01:00 committed by GitHub
commit 1d04d46c60
1 changed files with 1 additions and 1 deletions

View File

@ -1282,7 +1282,7 @@ class WC_Cart extends WC_Legacy_Cart {
}
$this->set_shipping_total( array_sum( wp_list_pluck( $this->shipping_methods, 'cost' ) ) );
$this->set_shipping_tax( array_sum( $shipping_taxes ) );
$this->set_shipping_tax( array_sum( $merged_taxes ) );
$this->set_shipping_taxes( $merged_taxes );
return $this->shipping_methods;