Tax total for fees are already flattened

This commit is contained in:
Coen Jacobs 2014-02-05 12:03:56 +01:00
parent efc2fa1d4a
commit c9d39bcc8b
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}
}
}