Select a Customer

Top 5 Customers

'; $index = 1; foreach ( $topList as $item ) { echo '
  • ' . $item->billing_company . ' ' . wc_price( wc_get_customer_total_spent( $item->ID ) ) . '
  • '; } echo ''; } ?>
    zacctmgr_assigned; $manager_data = $manager_id != 0 ? get_user_by( 'ID', $manager_id ) : null; ?>

    Select a Customer

    Customer

    • Last, First:  last_name . ' ' . $customer_data->first_name; ?>
    • Company:  billing_company; ?>
    • Email:  user_email; ?>
    • Phone:  billing_phone; ?>
    • Account Manager:  first_name . ' ' . $manager_data->last_name : 'Not Assigned'; ?>
    Orders
    Gross Sales
    Net Sales
    coupons
    refunds
    shipping

    Number of Products Purchased: total_items; ?>

    Top Ordered Product: detailed_order_items ? $report->detailed_order_items[0]->order_item_name : ''; ?>

    Top Ordered Category: detailed_order_items ) { $product_id = $report->detailed_order_items[0]->product_id; $product_categories = zacctmgr_get_product_category_by_id( $product_id ); if ( count( $product_categories ) > 0 ) { echo '' . implode( ', ', $product_categories ) . ''; } } ?>

    Avg Orders Per Month: avg_order; ?>

    Avg Order Size: avg_order_size, 2 ); ?>

    Avg Number of Products Ordered: avg_order_item; ?>

    post_date; $id = $order->ID; $order = wc_get_order( $order->ID ); ?>

    : # - get_total(), 2 ); ?>

    View All
    '; } else { echo 'No Orders'; } ?>