Invoice number empty when sending e-mail
-
Since talking in ordernumbers and invoicenumbers can be confusing for our customers I edited the woocommerce email templates (copy to child theme) so this will display the invoice number instead of the ordernumber:
$order->get_meta( ‘_wcpdf_invoice_number’ )
When the order has status ‘Processing’ and the first e-mail is sent to the customer the Invoice Number is not yet generated and empty. This results in an customer-processing-order e-mail with an attached invoice PDF but with an empty invoice number in the HTML e-mail.
How can I change the order of generation that the Invoice number is generated on save time of the order?
The topic ‘Invoice number empty when sending e-mail’ is closed to new replies.