Hello again Osmaq,
Custom templates aren’t used by the filters AJAX mode, you need to edit the hooked actions! You can do that in the functions.php of your child theme.
But before turning to custom hooks and templates, I would once again advice you to try the native Woocommerce tax settings. I have just set the Display prices in the shop to “Excluding tax” on our test site that runs the Storefront theme just like your site, and everything works fine, AJAX or not! Perhaps the applied tax rate is outside your location detection? Try setting the Tax > Tax options > Calculate tax based on to “Shop base address” to see if the taxes start displaying properly this way.
If the above doesn’t work, just to see if you can edit the price field of the filters’ AJAX returns, try adding the following code to the functions.php of your child theme (for testing purposes this could be done in the functions.php of the main theme too, just remember that any custom code gets erased during the theme updates):
if ( ! function_exists( 'annasta_filters_ajax_price_adjustment' ) ) {
function annasta_filters_ajax_price_adjustment( $price, $product ) {
$price = $product->get_regular_price();
return $price;
}
}
if( wp_doing_ajax() && isset( $_REQUEST['awf_front'] ) && isset( $_GET['awf_action'] ) && 'filter' === $_GET['awf_action'] ) {
add_filter( 'woocommerce_get_price_html', 'annasta_filters_ajax_price_adjustment', 10, 2 );
}
Please keep in mind that $product->get_regular_price() does NOT cover all kinds of products and prices (for example, the sale prices won’t be returned this way). For ideas see the native Woocommerce get_price_html functions.