Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi Jana,
    That is because the totals in the Simple template come from WooCommerce.
    If you want to change this, you will need to edit the WooCommerce translations or filter the totals and replace it ‘manually’ (although I think the woocommerce translations approach would be preferable):

    add_filter( 'wpo_wcpdf_woocommerce_totals', 'wcpdf_translate_gesamtsumme' );
    
    function wcpdf_translate_gesamtsumme($totals) {
    	foreach ( $totals as $key => $total ) {
    		if ( $total['label'] == 'Gesamtsumme' ) {
    			$totals[$key]['label'] = 'Etwas anderes';
    		}
    	}
    
    	return $totals;
    }

    You have to put this code inside your theme’s functions.php (or ‘custom functions’ area if your theme has something like that).

    Thread Starter aliceandcaligula

    (@aliceandcaligula)

    Wow,

    that’s what I call a quick answer 🙂
    It’s just how I thought… Your snippet did the trick.
    Thank you very much!
    5***** for plugin & support

    Jana

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks for the review! Let me know if you have any other questions!

    Have a great day!
    Ewout

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