• Resolved toad78

    (@toad78)


    We are working with WooCommerce Deposits and need the PDF to carry over the language necessary to make the invoice more sensible. Meaning, instead of the “Total” label at the bottom of the invoice, we need it to say “Deposit Due”.

    • This topic was modified 5 years, 8 months ago by toad78.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi!
    The easiest way to do this is with our Premium Templates extension which lets you do this directly from the settings:

    In the free version you can do this with a code snippet:

    
    add_filter( 'wpo_wcpdf_woocommerce_totals', 'wpo_wcpdf_woocommerce_totals_deposit_due', 10, 3 );
    function wpo_wcpdf_woocommerce_totals_deposit_due ( $totals, $order, $template_type ) {
    	foreach ($totals as $key => $total) {
    		if ( $key == 'order_total' ) {
    			$totals[$key]['label'] = 'Deposit Due';
    		}
    	}
    
    	return $totals;
    }
    
    Thread Starter toad78

    (@toad78)

    I’ll give it a go and let you know how it turns out!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Output of Labels?’ is closed to new replies.