Hi @friswebdesign,
First of all, I am sorry for the late reply to this.
>> How can I add a VAT number to the invoice?
: You can use the below custom code to add the VAT field in the Order info section. However, you need to replace your VAT meta field name to “your_meta_field_name” in the below code:
function example_custom_order_fields( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, ‘your_meta_field_name’, true ) ) {
$new_fields[‘your_meta_field_name’] = array(
‘label’ => ‘VAT’,
‘value’ => get_post_meta( $order->id, ‘your_meta_field_name’, true )
);
}
return array_merge( $fields, $new_fields );
}
add_filter( ‘wcdn_order_info_fields’, ‘example_custom_order_fields’, 10, 2 );
Kindly add this code in the “functions.php” file of your currently active theme.
>> All orders receive an invoice now, is it possible to only make invoices for the orders I choose?
: You can select the particular orders on the WooCommerce Orders page and then select an action of “Print Invoice”, receipt or delivery note from the Bulk actions.
Please check and let us know if you have any other questions.