Feature: Add 24-hour cleanup for incomplete orders and update status display
- Create cleanupOrders utility to delete pending orders older than 24 hours - Update admin notifications to only count recent pending orders (< 24h old) - Automatically call cleanup when customer initiates checkout - Change status display from "PENDING" to "Waiting payment" for customer-facing views - Update both customer account page and admin orders page with new status label - Incomplete orders automatically purged, reducing admin clutter Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
fa202db4a7
commit
3e90928986
@@ -88,7 +88,8 @@
|
||||
"Bash(git commit -m 'Add: Prominent '\\\\''Shop plain items'\\\\'' section to homepage *)",
|
||||
"Bash(git commit -m 'Feature: Royal Mail shipping integration with weight-based postage *)",
|
||||
"Bash(git commit -m 'Add: Weight field to product admin pages *)",
|
||||
"Bash(git commit -m 'Add: Shipping selector component and checkout integration *)"
|
||||
"Bash(git commit -m 'Add: Shipping selector component and checkout integration *)",
|
||||
"Bash(node clear-pending-orders.js)"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user