Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Yes, you can filter it out by adding the following code to your themes functions.php:

    add_filter( 'wpo_wcpdf_woocommerce_totals', 'wpo_wcpdf_remove_includes' );
    function wpo_wcpdf_remove_includes ( $totals ) {
    	if ( isset($totals['order_total'])) {
    		$value = $totals['order_total']['value'];
    		$includes = substr(__( '(Includes %s)', 'woocommerce' ), 0, -3);
    		$totals['order_total']['value'] = ($pos = strpos($value, ' '.$includes)) ? substr($value, 0, $pos) : $value;
    	}
    	return $totals;
    }

    Let me know if you have any other questions!

    Ewout

Viewing 1 replies (of 1 total)

The topic ‘Remove the text includes VAT’ is closed to new replies.