Tax fees should respect tax rates too

This commit is contained in:
Coen Jacobs 2014-02-05 12:30:47 +01:00
parent c9d39bcc8b
commit 3d7c2fc297
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 ] = $fee->tax + ( isset( $this->taxes[ $key ] ) ? $this->taxes[ $key ] : 0 );
$this->taxes[ $key ] = ( isset( $fee_taxes[ $key ] ) ? $fee_taxes[ $key ] : 0 ) + ( isset( $this->taxes[ $key ] ) ? $this->taxes[ $key ] : 0 );
}
}
}