woocommerce_adjust_non_base_location_prices test (false for now, should be true for current behavior)
This commit is contained in:
parent
797f2fab62
commit
31ed6c2531
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue