You can use the following function to get total sum of completed orders of a user public function get_customer_total_order() { $customer_orders ...
Or “How can I get the order items“? Or maybe the order ID, customer ID, billing info, payment method, total refunds and so on… hopefully this ...
$user_id = get_current_user_id();. $string = wc_get_customer_total_spent( $ user_id );. echo $string;.
You also don't want to hard-code the core WooCommerce statuses, as plugins
or descending order by Order number, Date or Total by select the heading.
( int ) required – User ID. Returns. int. Source. File name: woocommerce/includes /wc-user-functions.php. Lines: 1 to ...
To view a customer's browsing history and total lifetime value, go to WooCommerce > Orders and scroll to the Customer Browsing History and Customer ...
Get the total sum (money spent) of orders made by a user with a "complete" status in WooCommerce. This will output the current month's sum of all orders made ...
Orders allow you to view gross and net sales volume and totals, as well as top sellers, top freebies, ...
Import order data, such as line items, linked customers, order totals, order notes,