• Resolved Joeri

    (@joeri1977)


    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)
  • Plugin Contributor dwpriv

    (@dwpriv)

    You don’t need to Professional version for this snippet to work. If the snippet is not working, it can be that meta key is not correct or there is now vat number saved to the order. To check for the meta key, you can use this guide here and update it in the snippet if necessary.

    Plugin Contributor dwpriv

    (@dwpriv)

    Since we haven’t heard from you in a while, I will mark this topic as resolved. Feel free to reopen it if you still need more help, or open another thread if you need help with something else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.