Skip to content

Commit

Permalink
woocommerce_adjust_non_base_location_prices test (false for now, shou…
Browse files Browse the repository at this point in the history
…ld be true for current behavior)
  • Loading branch information
mikejolley committed Sep 4, 2015
1 parent 797f2fa commit 31ed6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ public function calculate_totals() {
/**
* 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
$taxes = WC_Tax::calc_tax( $line_price, $base_tax_rates, true, true );
Expand Down

0 comments on commit 31ed6c2

Please sign in to comment.