Add guest checkout and admin login link

- Add guest checkout flow: customers can now complete orders without creating an account
  - New /checkout page with login or guest options
  - Guest form collects: full name, email, phone, address
  - Orders track guest info via guestName and guestPhone fields
- Update cart message to reflect guest option
- Add "Admin login" link to customer login page for clear navigation
- Update checkout API to accept and store guest information

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-16 20:10:42 +01:00
co-authored by Claude Haiku 4.5
parent 39f54dedee
commit 8edb5e1f5b
5 changed files with 275 additions and 25 deletions
+3
View File
@@ -187,6 +187,9 @@ model Order {
customerId String? // set when the buyer was logged in at checkout — null for guest orders
customer Customer? @relation(fields: [customerId], references: [id])
guestName String? // full name for guest orders
guestPhone String? // contact phone for guest orders
items OrderItem[]
}