• Resolved simplyniknaks

    (@simplyniknaks)


    In my Settings I have Attach Invoice To ‘Processing Order’, ‘Completed Order’, ‘Customer Invoice/Order details (manual email)’ and ‘Order Notification’

    If I display my order number as a column on the Orders screen, then orders with status ‘Processing’ do not have an order number. I only see an Order Number if status is ‘Completed’.

    I need Order Number assigning to orders when they are at status ‘Procesing’

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter simplyniknaks

    (@simplyniknaks)

    Sorry – where ever I have said ‘order number’ above I meant ‘invoice mumber’

    Plugin Contributor kluver

    (@kluver)

    Hi @simplyniknaks,

    That is strange. Is the processing email going out to the customer? And if so, does it have the invoice attached?

    Thread Starter simplyniknaks

    (@simplyniknaks)

    I think I may have solved it – it may be a plugin I am using.

    I use this plugin to pull in my ebay and amazon orders and they are pulled in at status ‘Processing’ – so presumably it is not firing the woocommerce ‘order status changed to processing’ event.

    I may be able to hook into an action on the plugin when it creates the order to call something in your plugin to assign Invoice Number. If so what would I call?

    Plugin Contributor Ewout

    (@pomegranate)

    Ah that makes sense actually. Our plugin does not create the invoice at a certain status, but for a status email. It is likely that the ebay plugin does not send out those emails so the invoice is never created.
    If you have a hook for the orders created via the ebay importer, you can create a PDF like so:

    
    $order = wc_get_order( $order_id ); // only needed if you don't have the order object yet
    $invoice = wcpdf_get_invoice( $order, true ); // the 'true' parameter will init the invoice and create the ninvoice umber (if it didn't have one yet)
    

    Hope that helps!

    Thread Starter simplyniknaks

    (@simplyniknaks)

    Great. Yes – Ive put that code in the hook and it works fine now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No Invoice Number Generated for Processing’ is closed to new replies.