• Resolved farooktransvelo

    (@farooktransvelo)


    Hello there,

    I would like to change order status automatically to “Invoiced” after PDF generated. I have custom order status “wc-invoiced”. Is it possible?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    after the actual Invoice PDF has been generated? Or after the number has been generated? This is not the same. In your previous question you asked about generating the invoice number when the packing slip was created, but this does not create the PDF.

    Thread Starter farooktransvelo

    (@farooktransvelo)

    Regarding the previous question new invoice number generated in packing slip. Now i would like to update the status(Invoiced) after the Packing Slip PDF generated.

    Plugin Contributor Ewout

    (@pomegranate)

    in that case you can simply include this line in the snippet from your previous post (just below $invoice =):

    
    $order->update_status('invoiced');
    
    Thread Starter farooktransvelo

    (@farooktransvelo)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Order Status’ is closed to new replies.