What I did
Disabled all plugins, Cleared cache from woocommerce>tools
But no luck. Please help me fixing the issue.
]]>I have generated a Performance report in the Analytics dashboard – but there is no “download” or export button anywhere… has this functionality been removed – or am I experiencing a bug or conflict?
Where does one normally see that button ?
]]>Okay, so I want to export my revenue report. I clicked on download, and a popup showed saying that the Revenue Report will be emailed to me. I know that it will be emailed to the email of the currently logged in user. So I checked that email, nothing was sent to me.
And so I installed a plugin to view mail logs. The version of Woocommerce I currently have by this time is 4.6.1. So I tested the revenue report again, nothing showed up in the logs and received no email. I tested an Order report, it showed up in the logs and I received an email. I updated Woocommerce to 4.6.2, and I got the same results.
I’ve also checked the logs of Woocommerce for any fatal errors, nothing.
I checked the browser console for any javascript errors, nothing as well.
I also compared the sizes of the reports in wp-content/uploads
if the revenue report is too big to be emailed, but no it is not even big at all. The revenue report generated is only around 2.5kb, while the order reports are around 200+kb, and still got sent.
Is this a bug? Or is there something I need to configure to do fix this?
]]>what am I missing?
check this screenshot for reference: https://imgur.com/AUZQN5E
thanks in advance
]]>I’m trying to create a custom Woocommerce report based on an order field. I added a field on the billing section thanks to woocommerce_billing_fields
filter.
The field works well, I succeed to display it on order’s page in admin (like this : get_post_meta($order->ID, '_billing_options', true);
).
I created a new class extending WC_Admin_Report, overriding output_report()
and get_main_chart()
. Here’s the faulty code in get_main_chart :
$query_data = array(
'ID' => array(
'type' => 'post_data',
'function' => 'COUNT',
'name' => 'total_orders',
'distinct' => true,
),
'_billing_options' => array(
'type' => 'meta',
'function' => '',
'name' => 'organization'
),
'_order_total' => array(
'type' => 'meta',
'function' => 'SUM',
'name' => 'order_total'
),
);
$sales_by_organization_orders = $this->get_order_report_data( array(
'data' => $query_data,
'query_type' => 'get_results',
'group_by' => 'organization',
'filter_range' => true,
'order_types' => wc_get_order_types( 'sales-reports' ),
'order_status' => array( 'completed' ),
'parent_order_status' => false,
) );
It’s not working, I didn’t return any result. However if I use ‘_billing_country’ instead of ‘_billing_options’ it’s works very well.
Maybe I’m missing something. If anyone know how to do this? Thanks!
Basically:
I’m in the UK. Book sales to UK and EU are VAT-exempt. I need to run a monthly or quarterly report that shows me sales of all products in the ‘books’ category, for countries in the UK and EU.
Can anyone point me in the direction of how I’d do this? I know the data is all there, but how to begin I have no idea!!
Thanks so much,
Beth
]]>There is already similar function in admin report. I’d like to use the function woocommerce provided in https://github.com/woocommerce/woocommerce/tree/master/includes/admin/reports but I can’t get it work.
How do use it in frontend? Or I need to write the sql my self?
]]>