Dear supporters,
I am using following snippet in my functions.php to display prices with and without VAT in woocommerce:
/* display price with- and without vat */
add_filter( 'woocommerce_get_price_suffix', 'bbloomer_add_price_suffix_price_inc_tax', 99, 4 );
function bbloomer_add_price_suffix_price_inc_tax( $suffix, $product, $price, $qty ){
$suffix = '<span class="excltax">exkl. MwSt. </span>' . wc_price( wc_get_price_including_tax( $product ) ) . ' <span class="incltax">inkl. MwSt.</span>';
return $suffix;
}
add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_min', 9999, 2 );
function bbloomer_variation_price_format_min( $price, $product ) {
$prices = $product->get_variation_prices( true );
$min_price = current( $prices['price'] );
$price = sprintf( __( '%s %s', 'woocommerce' ), wc_price( $min_price ), $product->get_price_suffix() );
return $price;
}
Unfortunately it doesn't display the prices in tthat way within the b2bking_tiered_price_table
Could you provide me with a simple solution?
Kind regards
Manuel




