"Customer" views - #3292
Open
brianhogg wants to merge 9 commits into
Open
"Customer" views#3292brianhogg wants to merge 9 commits into
brianhogg wants to merge 9 commits into
Conversation
…15 minutes or order/transaction save.
brianhogg
marked this pull request as ready for review
September 22, 2026 18:13
Contributor
Author
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 69429a3. Configure here.
…nts if users are deleted. Allow search with only one character. Fix "billing" sidebar content on single customer overview.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
New "Customers" view under the Orders menu.
How has this been tested?
Manually
Screenshots
Checklist:
Note
Medium Risk
Introduces heavy SQL aggregation and cached revenue metrics used for admin decisions; bugs could misreport LTV or segments, though access is gated and tests cover core query behavior.
Overview
Adds a Customers admin area under Orders so staff can browse purchasers with commerce metrics, segments, and per-customer detail without going through the WordPress user editor.
The list view is a searchable, sortable, exportable table backed by a new
LLMS_Customer_Querythat aggregates orders and transactions into LTV, AOV, subscription counts, and related fields. Segment filters (all, high spenders, active subscriptions, free only, at risk) use cached counts and an LTV percentile threshold for “high spenders.” Single-customer pages reuse reporting-style layout with Overview (widgets, recent orders, billing, enrollments) and Orders tabs.Navigation now points buyers to the customer screen from the orders list, order metabox, and student reporting (LTV/order teaser widgets with “view customer” links). Access follows the existing
lifterlms_admin_order_accesscapability; metrics cache invalidates when orders or transactions are saved.Includes admin styling, help beacon and table script registration, a small fix so reporting monetary widgets only format numeric compare values, PHPUnit coverage for the query and helpers, and a changelog entry.
Reviewed by Cursor Bugbot for commit 69429a3. Bugbot is set up for automated code reviews on this repo. Configure here.