Add VAT Number to PDF
-
Hi, this is related to an ‘resolved’ topic but I am also using the EU VAT plugin to add a VAT number field for our customers:?https://wpfactory.com/item/eu-vat-for-woocommerce/.
Do I need the PRO version for the snippet below to work because the VAT number is not added below the billing address.
/** * Show the VAT number on the invoice */ add_action( ‘wpo_wcpdf_after_billing_address’, function($template_type, $order){ if( $template_type == ‘invoice’) { if ( $vat_number = $order->get_meta( ‘_billing_eu_vat_number’ ) ){ echo ‘<div>VAT: ‘ . $vat_number . ‘</div>’; } } }, 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.