Feature: Creating Cart Service, Cart Events, Save For Later functionality, Adding Filament Views for viewing abandoned carts
This commit is contained in:
@@ -39,11 +39,13 @@ class CartResource extends Resource
|
||||
}
|
||||
|
||||
/**
|
||||
* Count only, not a fetch — no rows are loaded. Scoped to genuinely abandoned
|
||||
* carts specifically (mirrors ListCarts::getTabs()'s "Abandoned" query, not
|
||||
* "Ongoing"), since that's the number a staff member glancing at the sidebar
|
||||
* actually wants: how many carts might need following up on, not the total
|
||||
* including ones someone is actively shopping in right now.
|
||||
* Count only, not a fetch — no rows are loaded. Combines BOTH abandoned
|
||||
* states (`active()` already covers "no order at all" and "draft order,
|
||||
* never placed" together — see ListCarts::getTabs()'s "Abandoned Cart" /
|
||||
* "Abandoned Checkout" tabs for where they're split apart), not "Ongoing"
|
||||
* — the badge is meant to answer "how many carts might need following up
|
||||
* on," not the total including ones someone is actively shopping in right
|
||||
* now.
|
||||
*/
|
||||
public static function getNavigationBadge(): ?string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user