Get Invoice number for order
-
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/website.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/legacy/class-wcpdf-legacy-export.php:53 Stack trace: #0 /var/www/vhosts/website.com/httpdocs/wp-content/plugins/woo-export-invoices/woo-export-invoices.php(95): WPO\WC\PDF_Invoices\Legacy\Legacy_Export->__call('get_invoice_dat...', Array) #1 /var/www/vhosts/website.com/httpdocs/wp-content/plugins/woo-export-invoices/woo-export-invoices.php(95): WPO\WC\PDF_Invoices\Legacy\Legacy_Export->get_invoice_date('4850') #2 [internal function]: Woo_Export_Orders\Init->download_csv('') #3 /var/www/vhosts/website.com/httpdocs/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #4 /var/www/vhosts/website.com/httpdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #5 /var/www/vhosts/website.com/httpdocs/wp-includes/plugin.php(453): WP_H in /var/www/vhosts/website.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/legacy/class-wcpdf-legacy-export.php on line 53
Am I doing something wrong? Thanks
- The topic ‘Get Invoice number for order’ is closed to new replies.