Tax total for fees are already flattened
This commit is contained in:
parent
efc2fa1d4a
commit
c9d39bcc8b
|
@ -1844,7 +1844,7 @@ class WC_Cart {
|
|||
|
||||
// Tax rows - merge the totals we just got
|
||||
foreach ( array_keys( $this->taxes ) as $key ) {
|
||||
$this->taxes[ $key ] = ( isset( $fee_taxes['taxes'][ $key ] ) ? $fee_taxes['taxes'][ $key ] : 0 ) + ( isset( $this->taxes[ $key ] ) ? $this->taxes[ $key ] : 0 );
|
||||
$this->taxes[ $key ] = $fee->tax + ( isset( $this->taxes[ $key ] ) ? $this->taxes[ $key ] : 0 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue