Merge branch 'pr/22488'
This commit is contained in:
commit
d096d17d25
|
@ -485,7 +485,10 @@ final class WC_Cart_Totals {
|
|||
return array();
|
||||
}
|
||||
$tax_class = $item->product->get_tax_class();
|
||||
return isset( $this->item_tax_rates[ $tax_class ] ) ? $this->item_tax_rates[ $tax_class ] : $this->item_tax_rates[ $tax_class ] = WC_Tax::get_rates( $item->product->get_tax_class(), $this->cart->get_customer() );
|
||||
$item_tax_rates = isset( $this->item_tax_rates[ $tax_class ] ) ? $this->item_tax_rates[ $tax_class ] : $this->item_tax_rates[ $tax_class ] = WC_Tax::get_rates( $item->product->get_tax_class(), $this->cart->get_customer() );
|
||||
|
||||
// Allow plugins to filter item tax rates.
|
||||
return apply_filters( 'woocommerce_cart_totals_get_item_tax_rates', $item_tax_rates, $item, $this->cart );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue