* The woocommerce_adjust_non_base_location_prices filter can stop base taxes being taken off when dealing
* with out of base locations. e.g. If a product costs 10 including tax, all users will pay 10
* regardless of location and taxes.
*
* @since 2.6.0
*
* @internal Matches filter name in WooCommerce core.
*
* @param boolean $adjust_non_base_location_prices True by default.
* @return boolean
*/
$taxes = apply_filters( 'woocommerce_adjust_non_base_location_prices', true ) ? WC_Tax::calc_tax( $price_filter, $base_tax_rates, true ) : WC_Tax::calc_tax( $price_filter, $tax_rates, true );
return $price_filter - array_sum( $taxes );
}
// If prices are shown excl. tax, add taxes to match the prices stored in the DB.
$taxes = WC_Tax::calc_tax( $price_filter, $tax_rates, false );
return $price_filter + array_sum( $taxes );
}
}
Fatal error: Uncaught Error: Class "Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection" not found in /home/valigeria/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php:106
Stack trace:
#0 /home/valigeria/public_html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Blocks\BlockTypesController->register_blocks('')
#1 /home/valigeria/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#2 /home/valigeria/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /home/valigeria/public_html/wp-settings.php(695): do_action('init')
#4 /home/valigeria/public_html/wp-config.php(111): require_once('/home/valigeria...')
#5 /home/valigeria/public_html/wp-load.php(50): require_once('/home/valigeria...')
#6 /home/valigeria/public_html/wp-blog-header.php(13): require_once('/home/valigeria...')
#7 /home/valigeria/public_html/index.php(17): require('/home/valigeria...')
#8 {main}
thrown in /home/valigeria/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php on line 106