更改WooCommerce PDF发票模板中的[[ORDERINFO]]

In the template for WooCommerce PDF invoices I see this piece of code [[ORDERINFO]]. There are others, all in double brackets. Some of the data outputted by these code is not needed on my invoices. So I want to customize it.

In particular, I don't need the Qty, Total ex., Tax (in the product line), the Price Inc and the Total Inc columns. I just need the Product and Price ex Column. Of course do I need the totalization on the invoice, as there is: Subtotal, VAT (if applicable) and Grand Total. Shipping is not needed because the products are all downloadable.

I really not know how and where I do that. Please advise.

At classes directory there is a file called class-pdf-send-pdf-class.php. You can customize the component there. But I am not sure which part you have to customize to remove the Qty, Total and etc.

UPDATE You can custom the order details from function get_woocommerce_pdf_order_details. Just edit the code inside $line and don't forget to edit the $header inside get_woocommerce_invoice_content function.