woocommerce_adjust_non_base_location_prices test (false for now, should be true for current behavior)

This commit is contained in:
Mike Jolley 2015-09-04 10:33:51 +01:00
parent 797f2fab62
commit 31ed6c2531
1 changed files with 1 additions and 1 deletions

View File

@ -1233,7 +1233,7 @@ class WC_Cart {
/** /**
* ADJUST TAX - Calculations when base tax is not equal to the item tax * ADJUST TAX - Calculations when base tax is not equal to the item tax
*/ */
if ( $item_tax_rates !== $base_tax_rates ) { if ( $item_tax_rates !== $base_tax_rates && apply_filters( 'woocommerce_adjust_non_base_location_prices', false ) ) {
// Work out a new base price without the shop's base tax // Work out a new base price without the shop's base tax
$taxes = WC_Tax::calc_tax( $line_price, $base_tax_rates, true, true ); $taxes = WC_Tax::calc_tax( $line_price, $base_tax_rates, true, true );