Hi Ewout,
Thanks for the fast reply!
The Custom Order Numbers plugin creates a custom, sequential order number.
I’m using S-2018-x. I have a feeling it doesn’t acutally change the (post)number, but only creates a reference. Not sure though.
I found this snippet online yesterday:
/**
* Use order number as invoice number
*/
add_filter( 'wpo_wcpdf_invoice_number', 'wpo_wcpdf_format_invoice_number', 20, 4 );
function wpo_wcpdf_format_invoice_number( $invoice_number, $order_number, $order_id, $order_date ) {
return $order_number;
}
This seems to work. It’l copy the custom order Id (S-2018-X) and make the invoicenumber identical to it.
However, what do you mean by being sure the plugin doesn’t create order numbers for unfinished or cancelled orders? In what way would that create a problem?
Many thanks for the support!