Export orders grouped by a specific field?
-
Anyone know if it is possible to create an export that can group/distinct the results by a specific field? I’m trying to create an export that would include all woocommerce orders grouped by a specific custom order_meta field. e.g. order_affiliate.
I would like this affiliate name to be the first column value… From there I could create custom functions for each of the remaining columns based on this initial value… Total Sales | Quantity Items Sold etc, where I could query in the custom function by the affiliate name to figure out the total sales by this specific affiliate.
Another example output would be:
Affiliate A
Affiliate B
Affiliate CInstead of:
Affiliate A
Affiliate B
Affiliate A
Affiliate C
Affiliate A
The topic ‘Export orders grouped by a specific field?’ is closed to new replies.