I am writing custom woocommerce plugin.
Does woocommerce has any daily sales report of each product?
I know, that get_post_meta can show total sales of certain product, but I need to show sales of each product each day. So for example - Product A was bought 37 times at 27-03-2020, and then, I need to retrive this data .
No idea how to do it, maybe somehow with ACF update_field function? /
Thanks,
Wojtek
I am writing custom woocommerce plugin.
Does woocommerce has any daily sales report of each product?
I know, that get_post_meta can show total sales of certain product, but I need to show sales of each product each day. So for example - Product A was bought 37 times at 27-03-2020, and then, I need to retrive this data .
No idea how to do it, maybe somehow with ACF update_field function? https://www.advancedcustomfields/resources/update_field/
Thanks,
Wojtek
Share Improve this question asked Mar 27, 2020 at 17:17 SlingySlingy 311 silver badge5 bronze badges1 Answer
Reset to default 0The question that you posted is unfortunately not all that specific but take a look at Woocommerce analytics.
Otherwise there are 2 ways to do this on your own. 1. Query all the orders for day X and count the qty of a specific product. 2. Update the products sold after each purchase. Perhaps to a custom db table or somewhere else