0 I am using Woocommerce Offcial php rest Api library in my local Crm applicat
-
0
I am using Woocommerce Offcial php rest Api library in my local Crm application. And calling Sales report data.
$query = [ ‘context’ => ‘view’, ‘date_min’ => ‘2019-01-01’, ‘date_max’ => ‘2019-01-22’ ];
$sales_report = $woocommerce->get(‘reports/sales’, $query);
But when I get $sales_report object, I came to know that customer count from last date (in this case [2019-01-22] object ) from [totals] object is always zero. If I alter date_max to ‘2019-01-10’ than Customer count Of 10th of jan will show as Zero. Full Code pasted On pastebin >> https://pastebin.com/UdTSfSnq Full Output Is as follow >> https://pastebin.com/nbecistE If I change ‘date_max’ from 22nd to 23rd than Customer Count Of 22 would be 8 But 22nd’s will be 0 Image link as 23 as date_max Image Link as 22 as date_max How can I solve this issue ? If I am using postman To see customer count. It also showing 0 for last date of Totals object.I know I have missing something silly Or maybe this could be bug in woo api. can anyone help me through this or lead me towards any resource.
- The topic ‘0 I am using Woocommerce Offcial php rest Api library in my local Crm applicat’ is closed to new replies.