Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Get Invoice number for order

  • Resolved Václav Greif


    Hello, I’m trying to get invoice number for specific order.

    I tried to do:

    global $wpo_wcpdf;
    $wpo_wcpdf->export->get_invoice_date( $invoice->order_id )

    Which results in:

    [10-Jan-2018 17:08:01 UTC] PHP Fatal error:  Uncaught exception 'Exception' with message 'Call to undefined method WPO\WC\PDF_Invoices\Legacy\Legacy_Export::get_invoice_date()' in /var/www/vhosts/
    Stack trace:
    #0 /var/www/vhosts/ WPO\WC\PDF_Invoices\Legacy\Legacy_Export->__call('get_invoice_dat...', Array)
    #1 /var/www/vhosts/ WPO\WC\PDF_Invoices\Legacy\Legacy_Export->get_invoice_date('4850')
    #2 [internal function]: Woo_Export_Orders\Init->download_csv('')
    #3 /var/www/vhosts/ call_user_func_array(Array, Array)
    #4 /var/www/vhosts/ WP_Hook->apply_filters('', Array)
    #5 /var/www/vhosts/ WP_H in /var/www/vhosts/ on line 53

    Am I doing something wrong? Thanks

Viewing 2 replies - 16 through 17 (of 17 total)
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Get Invoice number for order’ is closed to new replies.