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:
@@ -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!",
|
||||
|
||||
Reference in New Issue
Block a user