• Its possible change invoice numeber with custom fields?
    Ex. with order->get_post_meta(‘_client-id’);

    I check this function but its not working… :/

    
    function change_invoice_number( $invoice_number, $invoice ) {
    
    	$client-id = $invoice->order->get_post_meta('_client-id');
    	$invoice_number = 'test'.$client-id;
    
        return $invoice_number;
    }
    add_filter( 'wpi_invoice_number', 'change_invoice_number', 10, 2 );*/

    `

Viewing 1 replies (of 1 total)
  • Timmmy

    (@timherinckx)

    +1. I also need to change the invoice number with a custom field because not all invoices will be generated by woocommerce…

Viewing 1 replies (of 1 total)
  • The topic ‘Change invoice numer’ is closed to new replies.