From a548903df978b8c03cfd9d7cb5edd919b9dfac2c Mon Sep 17 00:00:00 2001 From: Bryce Adams Date: Thu, 10 Nov 2016 12:37:15 +1100 Subject: [PATCH] Set ip and user agent for order Closes #5 --- inc/generate.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/generate.php b/inc/generate.php index 6cb70b1..3bdd87f 100644 --- a/inc/generate.php +++ b/inc/generate.php @@ -207,6 +207,8 @@ public static function order( $from, $customer ) { 'customer_id' => absint( $user ), 'status' => $status, 'created_via' => 'wc-cyclone', + 'customer_ip_address' => $faker->ipv4, + 'customer_user_agent' => $faker->userAgent, ]; $order = wc_create_order($data);