Is it possible that the NIP label and company name will not be displayed in the e-mail if the customer does not provide them. I use this code:

add_filter( 'woocommerce_email_order_meta_keys', 'wpdesk_vat_number_display_email' );
* VAT Number in emails
function wpdesk_vat_number_display_email( $keys ) {
     $keys['VAT Number'] = '_vat_number';
     return $keys;

code comes from:

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.