Hi Mandy,
You can output to HTML (see Status tab in the settings), then inspect element on the totals. Take the class from the tr (so for example, “cart_subtotal” for the Subtotal), and use that to unset that row:
add_filter( 'wpo_wcpdf_woocommerce_totals', 'wpo_wcpdf_remove_future_payments' );
function wpo_wcpdf_remove_future_payments ( $totals ) {
$remove = 'cart_subtotal'; // replace this with the total row you want to remove
if ( isset( $totals[$remove] ) ){
unset( $totals[$remove] );
}
return $totals;
}
I forgot to link to our documentation about using filters. Sounds like you know what to do with this, but for anyone else that needs to do the same:
How to use filters
Ewout