fix: add required email and country fields to checkout

- Add email field (required) for order confirmation
- Add phone field in contact info section
- Add country dropdown with regional options
- Add validation for email format and required fields
- Add checkoutEmailUpdate mutation call before completing
- Use selected country instead of hardcoded RS
- Add translations for new fields (EN, SR, DE, FR)
This commit is contained in:
Unchained
2026-03-25 10:50:42 +02:00
parent 4fcd4b3ba8
commit ef83538d0b
5 changed files with 144 additions and 15 deletions

View File

@@ -340,7 +340,12 @@
},
"Checkout": {
"checkout": "Kasse",
"contactInfo": "Kontaktinformationen",
"email": "E-Mail",
"emailRequired": "Erforderlich für Bestellbestätigung",
"phoneRequired": "Erforderlich für Lieferkoordination",
"shippingAddress": "Lieferadresse",
"country": "Land",
"firstName": "Vorname",
"lastName": "Nachname",
"streetAddress": "Straße und Nummer",
@@ -364,6 +369,8 @@
"yourCartEmpty": "Ihr Warenkorb ist leer",
"continueShopping": "Weiter einkaufen",
"errorNoCheckout": "Keine aktive Kasse. Bitte versuchen Sie es erneut.",
"errorEmailRequired": "Bitte geben Sie eine gültige E-Mail-Adresse ein.",
"errorFieldsRequired": "Bitte füllen Sie alle erforderlichen Felder aus.",
"errorOccurred": "Ein Fehler ist during des Checkouts aufgetreten.",
"errorCreatingOrder": "Bestellung konnte nicht erstellt werden.",
"orderConfirmed": "Bestellung bestätigt!",