Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Wheeliebrenn

    (@wheeliebrenn)

    For anyone seeking the answer, the code to change is in plugins/woocommerce/includes/class-wc-order.php

    Plugin Contributor Ewout

    (@pomegranate)

    If it’s just for the PDF Invoice, then you can also change this with a filter in functions.php:

    add_filter( 'wpo_wcpdf_woocommerce_totals', 'wcpdf_subtotal_label' );
    
    function wcpdf_subtotal_label($totals) {
    	foreach ( $totals as $key => $total ) {
    		if ( $key == 'cart_subtotal' ) {
    			$totals[$key]['label'] = 'Subtotal';
    		}
    	}
    
    	return $totals;
    }

    IIRC, woocommerce has a similar filter (this saves you the hassle of editing template files).

    Thread Starter Wheeliebrenn

    (@wheeliebrenn)

    Thanks as always Ewout!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Cart Subtotal"’ is closed to new replies.