Feature: Add quantity adjustment and fix shipping selection

- Add quantity adjustment controls (+ and -) on checkout order summary
- Prevent quantity from going below 1 with disabled minus button at qty=1
- Fix shipping selector not updating by wrapping callback in useCallback
- Shipping option changes now properly update order total
- Totals recalculate reactively when adjusting quantities or shipping

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Andymick
2026-07-19 07:33:03 +01:00
co-authored by Claude Haiku 4.5
parent 5538938020
commit 08038dffb1
10 changed files with 557 additions and 58 deletions
+6
View File
@@ -250,6 +250,12 @@ model Customer {
email String @unique
passwordHash String
name String?
phone String? // delivery phone number
addressLine1 String? // street address
addressLine2 String? // apartment, suite, etc.
city String?
postalCode String?
country String? // ISO 2-letter country code, e.g., "GB"
createdAt DateTime @default(now())
orders Order[]