How to get total sales amount by category and date range in woocommerce
-
I need to get the total sales amount for specific product category within certain date range in the frontend.
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?
- The topic ‘How to get total sales amount by category and date range in woocommerce’ is closed to new replies.