Changing woocommerce-pdf-invoices-packingslips.php
-
Hi,
I wanted to delete the subtotal and shipment lines from the invoice. I deleted the following code in woocommerce-pdf-invoices-packingslips.php:
/**
* Return/show the order subtotal
*/
public function get_order_subtotal( $tax = ‘excl’, $discount = ‘incl’ ) { // set $tax to ‘incl’ to include tax, same for $discount
return $this->functions->get_order_subtotal( $tax, $discount );
}
public function order_subtotal( $tax = ‘excl’, $discount = ‘incl’ ) {
$this->functions->order_subtotal( $tax, $discount );
}/**
* Return/show the order shipping costs
*/
public function get_order_shipping( $tax = ‘excl’ ) { // set $tax to ‘incl’ to include tax
return $this->functions->get_order_shipping( $tax );
}
public function order_shipping( $tax = ‘excl’ ) {
$this->functions->order_shipping( $tax );
}I also deleted the same in this file: class-wcpdf-functions.php
Unfortunately, it’s not working. Even if I delete the entire content of the file; everything is still working and looks the same. It’s not about caching, I also deleted the plugin already, installed again & it’s not something I can change in a template file.
Any ideas?
- The topic ‘Changing woocommerce-pdf-invoices-packingslips.php’ is closed to new replies.