Add both order id and order number to export

This commit is contained in:
Gerhard Potgieter 2018-03-09 14:13:16 +02:00
parent 8ce660e731
commit e08b447c14
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ class WC_Privacy {
$personal_data['orders'] = array(); $personal_data['orders'] = array();
foreach ( $orders as $order ) { foreach ( $orders as $order ) {
$order_data = array( $order_data = array(
'Transaction ID' => $order->get_order_number(), 'Order ID' => $order->get_id(),
'Order Number' => $order->get_order_number(),
'IP Address' => $order->get_customer_ip_address(), 'IP Address' => $order->get_customer_ip_address(),
'User Agent' => $order->get_customer_user_agent(), 'User Agent' => $order->get_customer_user_agent(),
'Billing First Name' => $order->get_billing_first_name(), 'Billing First Name' => $order->get_billing_first_name(),