Thread Starter
Jade
(@aussiecomadmin)
Also, when we select a product addon (e.g. Verification Certificate $132), the calculation is incorrect. –
https://app.screencast.com/GvCiNmAibARrF
Plugin Support
Vanesa
(@vanesarodriguez)
Hello there!
I hope you are doing well!
I see the option adds the right price in the “total options” field. However, could you, please, share a link to the product so we can make some tests?
Thanks in advance.
Thread Starter
Jade
(@aussiecomadmin)
Hi there,
To prevent the table from being displayed if no variation was chosen, you can try adding the following PHP code in the functions.php file of your current theme:
if ( ! function_exists( 'yith_wapo_custom_hide_total_price_on_variable' ) ) {
function yith_wapo_custom_hide_total_price_on_variable( $show_total_price_box, $product, $variation ) {
if ( ! empty( $product ) && $product instanceof WC_Product && 'variable' === $product->get_type() && empty( $variation ) ) {
$show_total_price_box = false;
}
return $show_total_price_box;
}
add_filter( 'yith_wapo_show_total_price_box', 'yith_wapo_custom_hide_total_price_on_variable', 99, 3 );
}
Let us know if this helped you.