Tracking information in quotation (PDF Invoices & Packing Slips)
-
Hi again @zorem,
I recently noticed that tracking information is displayed on our Proforma Invoices (quotations) generated through Woocommerce PDF Invoices & Packing Slips (by WP Overnight).
There are two options in AST to disable shipment information in Invoices and Packing Slips but not for Proforma Invoices (quotation).
FYI I added this snippet in order to remove the tracking display action in case of “proforma” document template:
add_action( 'wpo_wcpdf_before_order_details', 'remove_shipment_info_from_proforma', -1, 4 ); function remove_shipment_info_from_proforma( $template_type, $order ) { $wcast = WC_Advanced_Shipment_Tracking_Actions::get_instance(); remove_action( 'wpo_wcpdf_before_order_details', array( $wcast, 'tracking_display_in_invoice' ), 0, 4 ); if ( $template_type !== 'proforma' ) { add_action( 'wpo_wcpdf_before_order_details', array( $wcast, 'tracking_display_in_invoice' ), 0, 4 ); } }
It seems to work well but one another weird thing I’m trying to understand (for my curiosity): we also have “credit-note” invoices but we never had any shipment information, and we don’t want it, in these pdf documents. Even if the shipment is done before downloading the credit-note invoice”.
How can we explain that? Indeed, there are no option to not display tracking info in “credit-note” template documents??
Thanks in advance for your feedback and have a nice envening.
Best Regards,
Sylvain
- The topic ‘Tracking information in quotation (PDF Invoices & Packing Slips)’ is closed to new replies.