Problem price tax
-
Good morning.
In the thin of simple product I have a function in functions.php so that I get the price with Tax and price without Tax.
In a bundles product, it doesn’t work for me, as I could do to make it work the same way.
I enclose the function I have for the simple productfunction bbloomer_price_translatable_suffix( $html, $product, $price, $qty ){
$html .= ‘<div class=”texto-con-iva”>’.__( ‘price with Tax: ‘).wc_price( wc_get_price_including_tax( $product, array( ‘qty’ => $qty, ‘price’ => $price ) ) ).'</div>’;
return $html;
}add_filter( ‘woocommerce_get_price_suffix’, ‘bbloomer_price_translatable_suffix’, 2, 4 );
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem price tax’ is closed to new replies.